Maven
  1. Maven
  2. MNG-5251

Cannot use version range for plugin

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 3.0.4
    • Fix Version/s: None
    • Component/s: POM
    • Labels:
      None
    • Environment:
      Windows 7 SP1, Java 1.6u29
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      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
      

        Activity

        Jason van Zyl made changes -
        Field Original Value New Value
        Resolution Incomplete [ 4 ]
        Status Open [ 1 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Michal Michalski
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: