Uploaded image for project: 'Maven Help Plugin'
  1. Maven Help Plugin
  2. MPH-101

API incompatibility while executing maven-help-plugin:effective-settings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.1
    • 2.2
    • effective-settings
    • None

    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".

      Attachments

        1. pom.xml
          1.0 kB
          Robert Baker

        Activity

          People

            rfscholte Robert Scholte
            rsbaker56 Robert Baker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: