Hallo,

Dave Dyer wrote on 4. Dec 2023 08:27 (GMT +01:00):

> It seems odd to me for maven to have its own javac, 

It does not, when you use the compiler plugin in the default config it uses the 
Java compiler from the JDK you started maven with. It just uses the Tool API 
instead of the cli, but it’s basically same functionality.

You have either different JDKs or the settings are different. Most likely you 
did not set a release version, since maven does not default to the JDK version 
you are building with.

> For starters I'd like to convince maven to use one lf mine.

You can use toolchain and fork options, but I think you mostly need to use 
correct release switch I suspect.

https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-release.html

https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html

Gruß
Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to