Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4.3
-
None
Description
The JDK auto detection currently checks the Compiler Plugin's target setting from <build>/<pluginManagement> and <build>/<plugins>, in that order with the first one winning. However, the setting from <build>/<plugins> is effectively dominant during a Maven build, i.e.
<build> <pluginManagement> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <target>1.4</target> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <target>1.5</target> </configuration> </plugin> </plugins> </build>
means JDK requirement is 1.5