[
https://jira.codehaus.org/browse/MNG-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=301909#comment-301909
]
John Casey commented on MNG-4893:
---------------------------------
Still, it's interesting that Maven 3.0.4 isn't treating this as either a
release OR a snapshot:
{noformat}
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for
http://localhost/aprox/api/1.0/group/cs-repo
Downloading:
http://localhost/aprox/api/1.0/group/cs-repo/com/redhat/services/rest/user/user-rest-client-java/1.0.0.SNAPSHOT/maven-metadata.xml
[WARNING] Checksum validation failed, expected
fadf64d6a63432658605c71565e8fe9db63b992d but is
6b15d68e9afb51aee13d0f2f25a0730bdd883d42 for
http://localhost/aprox/api/1.0/group/cs-repo/com/redhat/services/rest/user/user-rest-client-java/1.0.0.SNAPSHOT/maven-metadata.xml
[WARNING] Checksum validation failed, expected
fadf64d6a63432658605c71565e8fe9db63b992d but is
6b15d68e9afb51aee13d0f2f25a0730bdd883d42 for
http://localhost/aprox/api/1.0/group/cs-repo/com/redhat/services/rest/user/user-rest-client-java/1.0.0.SNAPSHOT/maven-metadata.xml
Downloaded:
http://localhost/aprox/api/1.0/group/cs-repo/com/redhat/services/rest/user/user-rest-client-java/1.0.0.SNAPSHOT/maven-metadata.xml
(251 B at 0.0 KB/sec)
[DEBUG] Writing resolution tracking file
/Users/jdcasey/workspace/redhat/temp/it-poc/local-repo/com/redhat/services/rest/user/user-rest-client-java/1.0.0.SNAPSHOT/resolver-status.properties
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for
http://localhost/aprox/api/1.0/group/cs-repo
Downloading:
http://localhost/aprox/api/1.0/group/cs-repo/com/redhat/services/rest/user/user-rest-client-java/1.0.0.20110720.215608-33/user-rest-client-java-1.0.0.20110720.215608-33.pom
[DEBUG] Writing resolution tracking file
/Users/jdcasey/workspace/redhat/temp/it-poc/local-repo/com/redhat/services/rest/user/user-rest-client-java/1.0.0.20110720.215608-33/user-rest-client-java-1.0.0.20110720.215608-33.pom.lastUpdated
[WARNING] The POM for
com.redhat.services.rest.user:user-rest-client-java:jar:1.0.0.20110720.215608-33
is missing, no dependency information available
{noformat}
You'll notice that it's grabbing the maven-metadata.xml from the 1.0.0.SNAPSHOT
version dir, then using that to formulate a new URL (just as it would for a
snapshot). The problem is, it's formatting the URL incorrectly. So, it appears
we have a half-baked snapshot implementation where .SNAPSHOT is concerned.
Whether or not we choose to support .SNAPSHOT, this is broken.
> [regression] Version x.y.z.SNAPSHOT does not deploy correctly
> -------------------------------------------------------------
>
> Key: MNG-4893
> URL: https://jira.codehaus.org/browse/MNG-4893
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Deployment
> Affects Versions: 3.0
> Reporter: Paul Gier
> Assignee: Benjamin Bentmann
> Priority: Critical
>
> When using a version that ends with ".SNAPSHOT" instead of the usual
> "-SNAPSHOT", Maven 3.0 changes the project version to the timestamped
> version. So "5.2.0.SNAPSHOT" becomes something like
> "5.2.0.20101109.215833-1". A Nexus snapshot repository will reject this
> deployment because the version in the directory name does not end with
> "SNAPSHOT".
> I tested that this works in Maven 2.2.1 and Maven 3.0-beta-1, but does not
> work in Maven 3.0. The build returns an HTTP 400 error when deploying to
> Nexus.
> Error from Nexus log
> {noformat}
> 2010-11-09 22:02:23 INFO [1298122354-2147] - o.s.n.p.m.m.M2Repos~ - Storing
> of item snapshots:/org/drools
> /drools/5.2.0.20101110.030222-361/drools-5.2.0.20101110.030222-361.pom is
> forbidden by Maven Repository
> policy. Because snapshots is a SNAPSHOT repository
> 2010-11-09 22:02:23 ERROR [1298122354-2147] - o.s.n.r.ContentPlex~ - Got
> exception during processing
> request "PUT
> http://repository.jboss.org/nexus/content/repositories/snapshots/org/drools/drools
> /5.2.0.20101110.030222-361/drools-5.2.0.20101110.030222-361.pom": Storing of
> item snapshots:/org/drools
> /drools/5.2.0.20101110.030222-361/drools-5.2.0.20101110.030222-361.pom is
> forbidden by Maven Repository
> policy. Because snapshots is a SNAPSHOT repository
> {noformat}
--
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