I have two questions about maven.compiler.release
-tag
I want to replace
<properties>
<maven.compiler.source>12</maven.compiler.source>
<maven.compiler.target>12</maven.compiler.target>
</properties>
to
<properties>
<maven.compiler.release>12</maven.compiler.release>
</properties>
If I use <maven.compiler.release>
-property, do I have to set the release tag also in the plugin?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<!-- do I need that ? -->
<release>12</release>
</configuration>
</plugin>
According to https://www.baeldung.com/maven-java-version, it is set to both.
If I use maven.compiler.release
instead of maven.compiler.source
and maven.compiler.target
, then -bootclasspath
is also set and will do a cross-compile. What does this mean? Will the compilation file sizes with set -bootclasspath
be bigger or will the compilation need more time?