maven.compiler.target
- User
maven.compiler.target
- Assistant
maven.compiler.target is a configuration property used in Apache Maven to set the version of the Java compiler to be used during the build process.
This property specifies the version of Java bytecode that will be generated by the compiler. It determines the Java runtime compatibility of the compiled code.
The value of maven.compiler.target should match the version of the Java Development Kit (JDK) that is installed on the computer where the build process is being executed. By default, this property is set to the same value as maven.compiler.source, which represents the version of the Java source code.
For example, if the maven.compiler.source is set to 1.8, the default value, then the maven.compiler.target will also be set to 1.8, indicating that the compiled code should be compatible with the Java 8 runtime environment.