Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5251

Cannot use version range for plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 3.0.4
    • None
    • POM
    • None
    • Windows 7 SP1, Java 1.6u29

    Description

      There's no way for use version ranges for plugins in POM, like this:

      <project ...>
        ...
        <build>
          <plugins>
            <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>jboss-packaging-maven-plugin</artifactId>
              <version>[2.1, 2.2]</version>
              <extensions>true</extensions>
            </plugin>
          </plugins>
        </build>
        ...
      </project>
      

      I've also tried use of version range in <pluginManagement />, but still doesn't work.

      Console output after mvn package:

      [ERROR] Plugin org.codehaus.mojo:jboss-packaging-maven-plugin:[2.1, 2.2] or one of its dependencies could not be resolved: Failed to read ar
      tifact descriptor for org.codehaus.mojo:jboss-packaging-maven-plugin:jar:[2.1, 2.2]: Could not transfer artifact org.codehaus.mojo:jboss-pac
      kaging-maven-plugin:pom:[2.1, 2.2] from/to Custom-repo-plugins (http://nexus:8080/nexus/content/groups/custom): IllegalArgumentException: Ille
      gal character in path at index 93: http:/nexus:8080/nexus/content/groups/custom/org/codehaus/mojo/jboss-packaging-maven-plugin/[2.1, 2.2
      ]/jboss-packaging-maven-plugin-[2.1, 2.2].pom -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            kontomen Michal Michalski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: