Howdy, Did you figure out the effective configuration of m-compiler-p? Or, do you maybe use the takari lifecycle? As it use Eclipse JDT by default and totally disables/circumvents m-compiler-p...
Thanks T On Mon, Dec 4, 2023 at 9:09 AM Dave Dyer <dd...@real-me.net> wrote: > Thanks, I'll follow up by trying to extract detailed info about > what maven is actually doing. Its not my build script; I'm just > trying to figure out why the "better" Maven build is producing > worse results than the Ant build it is supposed to replace. > > At 11:52 PM 12/3/2023, Bernd Eckenfels wrote: > >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 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >