Ask Your Question
1

Does setting <packaging>jar</packaging> in pom.xml make my logging inactive but my persistence.xml active?

asked 2022-12-22 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-10-31 15:00:00 +0000

devzero gravatar image

No, setting the packaging as "jar" in pom.xml is not related to logging or persistence.xml. The packaging element in pom.xml specifies the default packaging of the project, which is used when no other packaging is specified. Setting it to "jar" means that the project will be packaged as a JAR file.

Logging and persistence.xml are related to the dependencies and configurations of the project. The logging configuration is usually specified in a separate configuration file or through specific dependencies in pom.xml, while persistence.xml is used to configure the persistence unit for JPA (Java Persistence API) in the project.

Therefore, setting the packaging element to "jar" will not affect the logging or persistence.xml configurations of the project.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-12-22 11:00:00 +0000

Seen: 10 times

Last updated: Oct 31 '21