[
http://jira.codehaus.org/browse/MDEPLOY-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189639#action_189639
]
Gabriel Dogaru commented on MDEPLOY-112:
----------------------------------------
I tried that .
if i use MavenProjectHelper.attachArtifact() the artifacts do not have
timestamp or build number. They get deployed the same way as using
uniqueVersion=false.
The reason why I didn't use MavenProjectHelper the first time is that for some
projects I needed to create artifacts with a different name than project.name,
and there is no MavenProjectHelper.attachArtifact() that would accept
artifactId as parameter.
Also I couldn't (still can't) use AttachedArtifact in
project.addAttachedArtifact(artifact) as it is used in MavenProjectHelper
because of some dependency conflict (I use gmaven 1.0-rc-4 and maven 2.2.1) and
I used instead DefaultArtifact. I guess that is not a problem since they both
implement Artifact.
> 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