[
https://jira.codehaus.org/browse/MVERSIONS-163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285686#comment-285686
]
Stephen Wiebe commented on MVERSIONS-163:
-----------------------------------------
Thanks for the tip on includesList/includes - that was just my
misunderstanding. And while I was aware of how shell globbing works, I had
simply forgotten about it when running these commands. Would it make sense to
update the documentation to reflect this? I noticed that on pages
http://mojo.codehaus.org/versions-maven-plugin/examples/advancing-dependency-versions.html
and
http://mojo.codehaus.org/versions-maven-plugin/examples/resolve-ranges.html
(among others), there are example commands that use asterisks without
quotes/escapes. As you point out, if someone attempts to copy/paste these on a
Unix/Linux machine, it may not work as expected.
So the only case where there appears to be an actual bug (possibly in maven
common artifact filters) is that the includes/excludes parameters appear to be
expecting (at most) 4-part coordinates, not 5-part. For example, these commands
work:
{noformat}
mvn versions:use-latest-versions "-Dincludes=*:*:*:1.2.14"
mvn versions:use-latest-versions "-Dincludes=*:*:jar:*"
mvn versions:use-latest-versions "-Dincludes=*:log4j:*:*"
mvn versions:use-latest-versions "-Dincludes=log4j:*:*:*"
mvn versions:use-latest-versions "-Dincludes=log4j:log4j:jar:1.2.14"
{noformat}
but these do not:
{noformat}
mvn versions:use-latest-versions "-Dincludes=*:*:*:*:1.2.14"
mvn versions:use-latest-versions "-Dincludes=*:*:*:*:*"
mvn versions:use-latest-versions "-Dincludes=*:log4j:*:*:*"
{noformat}
This would seem to indicate that the artifact filter library is not handling
classifiers correctly.
> includes/excludes/includesList/excludesList don't work correctly
> ----------------------------------------------------------------
>
> Key: MVERSIONS-163
> URL: https://jira.codehaus.org/browse/MVERSIONS-163
> Project: Maven 2.x Versions Plugin
> Issue Type: Bug
> Affects Versions: 1.2
> Reporter: Stephen Wiebe
> Attachments: pom.xml
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email