Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.1
-
None
-
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T16:58:10-04:00)
Maven home: C:\........\CommonFiles\apache-maven-3.2.3
Java version: 1.6.0_43, vendor: Sun Microsystems Inc.
Java home: C:\........\CommonFiles\Java\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T16:58:10-04:00) Maven home: C:\........\CommonFiles\apache-maven-3.2.3 Java version: 1.6.0_43, vendor: Sun Microsystems Inc. Java home: C:\........\CommonFiles\Java\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
Description
Running mvn help:effective-settings works fine whether or not there is a pom.xml in the project directory. However, if the pom.xml in the project directory includes a specific plugin configuration, then this command throws an error "An API incompatibility was encountered while executing org.apache.maven.plugins:maven-help-plugin:2.1.1:effective-settings: java.lang.NoSuchMethodError: org.apache.maven.settings.Settings.getRuntimeInfo()Lorg/apache/maven/settings/RuntimeInfo;".
The plugin configuration that causes this error appears to be:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-help-plugin</artifactId> <version>2.1.1</version> <configuration> <output>${basedir}/target/effective-settings.xml</output> </configuration> <executions> <execution> <phase>initialize</phase> <goals> <goal>effective-pom</goal> </goals> </execution> </executions> </plugin>
The failure does not occur with Maven 3.1.1, but does occur with Maven 3.2.3. To recreate the problem place the attached pom.xml into a directory, navigate to the directory and run the command "mvn help:effective-settings".