Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
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 :
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