[ 
http://jira.codehaus.org/browse/MDEPLOY-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189575#action_189575
 ] 

Gabriel Dogaru edited comment on MDEPLOY-112 at 9/2/09 1:52 PM:
----------------------------------------------------------------

[04:41:21]: [INFO] [deploy:deploy {execution: default-deploy}]
[04:41:21]: [INFO] No primary artifact to deploy, deploy attached artifacts 
instead.
[04:41:21]: [INFO] Retrieving previous build number from snapshots_repo
[04:41:21]: Uploading: 
file:////build/m2repository/snapshots/myapp/testutils/11.6-SNAPSHOT/testutils-11.6-20090902.084121-24.jar
[04:41:21]: 78K uploaded (testutils-11.6-20090902.084121-24.jar)
[04:41:21]: [INFO] Retrieving previous metadata from snapshots_repo
[04:41:21]: [INFO] Uploading repository metadata for: 'artifact myapptestutils'
[04:41:21]: [INFO] Retrieving previous metadata from snapshots_repo
[04:41:21]: [INFO] Uploading repository metadata for: 'snapshot 
myapp:testutils:11.6-SNAPSHOT'
[04:41:21]: [INFO] Retrieving previous build number from snapshots_repo
[04:41:21]: Uploading: 
file:////build/m2repository/snapshots/myapp/testutils/11.6-SNAPSHOT/testutils-11.6-20090902.084121-25.resource
[04:41:21]: 2K uploaded (testutils-11.6-20090902.084121-25.resource)
[04:41:21]: [INFO] Retrieving previous metadata from snapshots_build
[04:41:22]: [INFO] Uploading repository metadata for: 'artifact myapp:testutils'
[04:41:22]: [INFO] Retrieving previous metadata from snapshots_repo
[04:41:22]: [INFO] Uploading repository metadata for: 'snapshot 
myapp:testutils:11.6-SNAPSHOT'
[04:41:22]: [INFO] 
------------------------------------------------------------------------
[04:41:22]: [INFO] BUILD SUCCESSFUL

I am using  project.addAttachedArtifact(artifact); in my mojo to attach the 
artifact

Pom for distribution management:
 <distributionManagement>
        <repository>
            .........
        </repository>
        <snapshotRepository>
            <id>snapshots_repo</id>
            <name>snapshots_repo</name>
            <url>file:////build/m2repository/snapshots</url>
        </snapshotRepository>
    </distributionManagement>

      was (Author: gdogaru):
    [04:41:21]: [INFO] [deploy:deploy {execution: default-deploy}]
[04:41:21]: [INFO] No primary artifact to deploy, deploy attached artifacts 
instead.
[04:41:21]: [INFO] Retrieving previous build number from snapshots_repo
[04:41:21]: Uploading: 
file:////build/m2repository/snapshots/myapp/testutils/11.6-SNAPSHOT/testutils-11.6-20090902.084121-24.jar
[04:41:21]: 78K uploaded (testutils-11.6-20090902.084121-24.jar)
[04:41:21]: [INFO] Retrieving previous metadata from snapshots_repo
[04:41:21]: [INFO] Uploading repository metadata for: 'artifact myapptestutils'
[04:41:21]: [INFO] Retrieving previous metadata from snapshots_repo
[04:41:21]: [INFO] Uploading repository metadata for: 'snapshot 
myapp:testutils:11.6-SNAPSHOT'
[04:41:21]: [INFO] Retrieving previous build number from snapshots_repo
[04:41:21]: Uploading: 
file:////build/m2repository/snapshots/myapp/testutils/11.6-SNAPSHOT/testutils-11.6-20090902.084121-25.resource
[04:41:21]: 2K uploaded (testutils-11.6-20090902.084121-25.resource)
[04:41:21]: [INFO] Retrieving previous metadata from snapshots_build
[04:41:22]: [INFO] Uploading repository metadata for: 'artifact myapp:testutils'
[04:41:22]: [INFO] Retrieving previous metadata from snapshots_repo
[04:41:22]: [INFO] Uploading repository metadata for: 'snapshot 
myapp:testutils:11.6-SNAPSHOT'
[04:41:22]: [INFO] 
------------------------------------------------------------------------
[04:41:22]: [INFO] BUILD SUCCESSFUL
  
> deployed snapshot name has different build numbers for multiple artifacts of 
> the same build
> -------------------------------------------------------------------------------------------
>
>                 Key: MDEPLOY-112
>                 URL: http://jira.codehaus.org/browse/MDEPLOY-112
>             Project: Maven 2.x Deploy Plugin
>          Issue Type: Bug
>          Components: deploy:deploy
>    Affects Versions: 2.2.1
>         Environment: windows xp
>            Reporter: Gabriel Dogaru
>
> I have a module that deploys 2 artifacts,1 jar and 1 of them is custom type. 
> The build number from the snapshot name is different for the 2 (in the 
> repository). It get incremented every time an artifact is deployed. When I 
> try to make a local build it searches for the highest build number, and tries 
> to bring both the artifacts with the latest build number but only one of them 
> has that number. 
> I found a workaround for this by  <uniqueVersion>false</uniqueVersion> for 
> the snapshotRepository. 

-- 
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

        

Reply via email to