[ 
https://jira.codehaus.org/browse/MPH-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=353006#comment-353006
 ] 

Robert Baker commented on MPH-101:
----------------------------------

No - I am not able to reproduce this issue using maven-help-plugin-2.2 with the 
attached pom.xml (modified to use the later version of the help plugin):

[INFO] --- maven-help-plugin:2.2:effective-settings (default-cli) @ 
test-artifact ---
[INFO] Effective-settings written to: C:\........\target\effective-settings.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

It only appears to fail with maven-help-plugin-2.1.1.

> API incompatibility while executing maven-help-plugin:effective-settings
> ------------------------------------------------------------------------
>
>                 Key: MPH-101
>                 URL: https://jira.codehaus.org/browse/MPH-101
>             Project: Maven Help Plugin
>          Issue Type: Bug
>          Components: effective-settings
>    Affects Versions: 2.1.1, 2.2
>         Environment: 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"
>            Reporter: Robert Baker
>            Priority: Minor
>         Attachments: pom.xml
>
>
> 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:
> {code:xml}
>       <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> 
> {code}
> 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"}}.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to