You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Gier (JIRA)" <ji...@codehaus.org> on 2010/11/10 05:03:07 UTC

[jira] Created: (MNG-4893) [regression] Version x.y.z.SNAPSHOT does not deploy correctly

[regression] Version x.y.z.SNAPSHOT does not deploy correctly
-------------------------------------------------------------

                 Key: MNG-4893
                 URL: http://jira.codehaus.org/browse/MNG-4893
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: Deployment
    Affects Versions: 3.0
            Reporter: Paul Gier


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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MNG-4893) [regression] Version x.y.z.SNAPSHOT does not deploy correctly

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MNG-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey reopened MNG-4893:
-----------------------------


It's still broken, even if we suppose that .SNAPSHOT isn't supported. If that's true, then x.y.z.SNAPSHOT should be treated as a release version (not interpreted at all)...and it's not. See my comment just above this one.
                
> [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

        

[jira] Commented: (MNG-4893) [regression] Version x.y.z.SNAPSHOT does not deploy correctly

Posted by "Geoffrey De Smet (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=247187#action_247187 ] 

Geoffrey De Smet commented on MNG-4893:
---------------------------------------

Drools recently dumped the bad snapshot way (.SNAPSHOT) for the good way (-SNAPSHOT) because maven 3  couldn't deal with it and it's better to do it right.

> [regression] Version x.y.z.SNAPSHOT does not deploy correctly
> -------------------------------------------------------------
>
>                 Key: MNG-4893
>                 URL: http://jira.codehaus.org/browse/MNG-4893
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Deployment
>    Affects Versions: 3.0
>            Reporter: Paul Gier
>            Priority: Critical
>             Fix For: 3.x / Backlog
>
>
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MNG-4893) [regression] Version x.y.z.SNAPSHOT does not deploy correctly

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4893.
----------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 3.x / Backlog)
         Assignee: Benjamin Bentmann

As discussed, going forward {{\*-SNAPSHOT}} is the only snapshot version format we want to support. A corresponding warning for irregular snapshot versions has been added as per MNG-4957.

> [regression] Version x.y.z.SNAPSHOT does not deploy correctly
> -------------------------------------------------------------
>
>                 Key: MNG-4893
>                 URL: http://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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4893) [regression] Version x.y.z.SNAPSHOT does not deploy correctly

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242677#action_242677 ] 

Benjamin Bentmann commented on MNG-4893:
----------------------------------------

This is caused by an inconsistency in snapshot detection. Maven [2.0, 3.0] consider "5.2.0-20101110.030222-361" a snapshot version but not "5.2.0.20101110.030222-361" whereas the corresponding base forms "5.2.0-SNAPSHOT" and "5.2.0.SNAPSHOT" are both considered snapshot versions. I.e. if one tried to resolve the timestamped snapshot 5.2.0.20101110.030222-361 as a dependency, it would fail as well.

> [regression] Version x.y.z.SNAPSHOT does not deploy correctly
> -------------------------------------------------------------
>
>                 Key: MNG-4893
>                 URL: http://jira.codehaus.org/browse/MNG-4893
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Deployment
>    Affects Versions: 3.0
>            Reporter: Paul Gier
>            Priority: Critical
>             Fix For: 3.0.1
>
>
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4893) [regression] Version x.y.z.SNAPSHOT does not deploy correctly

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242791#action_242791 ] 

Brian Fox commented on MNG-4893:
--------------------------------

I think we should stick with the x.y.z-SNAPSHOT form for both expanded and non-expanded forms. Widening that pattern in Maven is just bound to cause additional problems in all the ecosystem tools that need to interpret snapshot v release

> [regression] Version x.y.z.SNAPSHOT does not deploy correctly
> -------------------------------------------------------------
>
>                 Key: MNG-4893
>                 URL: http://jira.codehaus.org/browse/MNG-4893
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Deployment
>    Affects Versions: 3.0
>            Reporter: Paul Gier
>            Priority: Critical
>             Fix For: 3.0.1
>
>
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4893) [regression] Version x.y.z.SNAPSHOT does not deploy correctly

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242794#action_242794 ] 

Jason van Zyl commented on MNG-4893:
------------------------------------

Why exactly do you need x.y.z.SNAPSHOT instead of x.y.z-SNAPSHOT? If they are trying have OSGi versioning then we should probably have something that means something in OSGi which would be x.y.z.qualifier. We want to move toward OSGi and this could be the first step. But I think you just took advantage of something we were doing wrong. We can probably help Mark Proctor fix the Drools build.

> [regression] Version x.y.z.SNAPSHOT does not deploy correctly
> -------------------------------------------------------------
>
>                 Key: MNG-4893
>                 URL: http://jira.codehaus.org/browse/MNG-4893
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Deployment
>    Affects Versions: 3.0
>            Reporter: Paul Gier
>            Priority: Critical
>             Fix For: 3.0.1
>
>
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-4893) [regression] Version x.y.z.SNAPSHOT does not deploy correctly

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MNG-4893:
-----------------------------------

         Priority: Critical  (was: Major)
    Fix Version/s: 3.0.1

> [regression] Version x.y.z.SNAPSHOT does not deploy correctly
> -------------------------------------------------------------
>
>                 Key: MNG-4893
>                 URL: http://jira.codehaus.org/browse/MNG-4893
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Deployment
>    Affects Versions: 3.0
>            Reporter: Paul Gier
>            Priority: Critical
>             Fix For: 3.0.1
>
>
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MNG-4893) [regression] Version x.y.z.SNAPSHOT resolution/deployment not handled correctly

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MNG-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey updated MNG-4893:
----------------------------

    Summary: [regression] Version x.y.z.SNAPSHOT resolution/deployment not handled correctly  (was: [regression] Version x.y.z.SNAPSHOT does not deploy correctly)
    
> [regression] Version x.y.z.SNAPSHOT resolution/deployment not handled 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

        

[jira] (MNG-4893) [regression] Version x.y.z.SNAPSHOT does not deploy correctly

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=301909#comment-301909 ] 

John Casey edited comment on MNG-4893 at 6/26/12 10:50 AM:
-----------------------------------------------------------

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
[...]
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
[...]
[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.
                
      was (Author: jdcasey):
    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

        

[jira] (MNG-4893) [regression] Version x.y.z.SNAPSHOT does not deploy correctly

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ 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