lock-snapshots does not seem to handle artifactname-x.y.z-something-SNAPSHOT
name patterns in snapshots
-------------------------------------------------------------------------------------------------------
Key: MVERSIONS-70
URL: http://jira.codehaus.org/browse/MVERSIONS-70
Project: Maven 2.x Versions Plugin
Issue Type: Bug
Affects Versions: 1.0
Reporter: Mike Hardy
version:lock-snapshots works very well almost all the time (awesome! thank you)
but, if you feed it something that looks like this:
$artifactname-$version-$anyothertext-SNAPSHOT it doesn't seem to handle it
correctly.
Here's the data I have:
INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.apache.sling
ArtifactId: maven-sling-plugin
Version: 2.0.3-incubator-SNAPSHOT
-------------
Reason: Unable to download the artifact from any repository
org.apache.sling:maven-sling-plugin:pom:2.0.3-incubator-SNAPSHOT
from the specified remote repositories:
asf-snapshot (http://people.apache.org/m2-snapshot-repository)
-------------
The POM snippet is:
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>maven-sling-plugin</artifactId>
<version>2.0.3-incubator-SNAPSHOT</version>
</plugin>
------------
The expectation (possibly erroneous) is that lock-snapshots should create this
(which works when done manually):
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>maven-sling-plugin</artifactId>
<version>2.0.3-incubator-20090305.130345-4</version>
</plugin>
--------
The artifact is actually here:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/sling/maven-sling-plugin/2.0.3-incubator-SNAPSHOT/
------
Perhaps the apache incubating project is violating a naming standard with their
naming pattern, or perhaps the lock-versions mojo isn't handling the optional
text between version and snapshot?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.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