开发者

Finding out which compiler Maven uses

开发者 https://www.devze.com 2023-01-03 11:05 出处:网络
Do you know how I can find out which of my JDKs Maven uses to开发者_开发知识库 compile my projects?mvn -version will spit out the version of maven and the jdk it is using.Sometimes you have to be awar

Do you know how I can find out which of my JDKs Maven uses to开发者_开发知识库 compile my projects?


mvn -version will spit out the version of maven and the jdk it is using.


Sometimes you have to be aware of the Maven compiler plugin configuration, cause it could be that there is defined to use a different source/target configuration or may be to use a different JDK etc.

mvn help:effective-pom

could give you the needed information.


The maven-compiler-plugin uses javac by default, and binds by default to the compile lifecycle phase.
This configuration can be overridden see non-javac compilers

0

精彩评论

暂无评论...
验证码 换一张
取 消