Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
These parameters don't seem to work according to how they are documented. Specifically, I can't get includesList or excludesList to work at all (on the command-line), and I can only get includes/excludes to work when specifying a pattern like "groupId:artifactId". The documentation specifies that the pattern should be "groupId:artifactId:type:classifier:version", which does not work. With the attached pom.xml, here is the behavior I'm seeing:
mvn versions:use-latest-versions -DincludesList=:log4j:::
All dependency versions are updated (should update just log4j dependency)
mvn versions:use-latest-versions -DincludesList=*:log4j
All dependency versions are updated (should update just log4j dependency)
mvn versions:use-latest-versions -Dincludes=:log4j:::
No dependency versions are updated (should update log4j dependency)
mvn versions:use-latest-versions -Dincludes=::::1.2.14
No dependency versions are updated (should update log4j dependency)
The only command I've found to work successfully is:
mvn versions:use-latest-versions -Dincludes=*:log4j
but this is insufficient because I need to filter based on artifact version.
Forgot about wiki auto-markup and I guess I can't edit the description. Here are the actual commands that the description refers to: