You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Wendy Smoak (JIRA)" <ji...@codehaus.org> on 2008/07/15 23:40:27 UTC
[jira] Issue Comment Edited: (MNG-3665) The uniqueVersion property
seems to have no affect
[ http://jira.codehaus.org/browse/MNG-3665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=141886#action_141886 ]
wsmoak edited comment on MNG-3665 at 7/15/08 4:40 PM:
-----------------------------------------------------------
The uniqueVersion element only affects snapshots, meaning it will only come into play if your version number ends in -SNAPSHOT.
In that case, in the remote repo you will get either myproject-2.1.0-SNAPSHOT.jar if uniqueVersion is set to false, or myproject-2.1.0-20080715.174936-1.jar if not (the default).
It does not affect the local repo, which always has non-unique filenames.
It's in the model for both <repository> and <snapshotRepository> because if you only define <repository>, Maven will deploy both snapshots and releases there.
was (Author: wsmoak):
The uniqueVersion element only affects snapshots, meaning it will only come into play if your version number ends in -SNAPSHOT.
In that case, in the remote repo you will get either myproject-2.1.0-SNAPSHOT.jar if uniqueVersion is set to false, or myproject-2.1.0-20080715.174936-1.jar if not (the default). It does not affect the local repo.
It's in the model for both <repository> because if you only define <repository>, Maven will deploy both snapshots and releases there.
> The uniqueVersion property seems to have no affect
> --------------------------------------------------
>
> Key: MNG-3665
> URL: http://jira.codehaus.org/browse/MNG-3665
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 2.0.7, 2.0.9
> Environment: Windows, mvn 2.0.9
> Reporter: Damon Rand
>
> I'm trying a very basic pom.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>org.alfresco.crowd</groupId>
> <artifactId>alfresco-crowd-security</artifactId>
> <name>Maven Alfresco Crowd Security AMP</name>
> <version>0.2.2</version>
> <description>Test AMP project</description>
> <distributionManagement>
> <repository>
> <id>ai-public-releases-secure3</id>
> <url>
> dav:https://forge.amnesty.org/maven/repos/public-releases
> </url>
> <uniqueVersion>true</uniqueVersion>
> </repository>
> </distributionManagement>
> </project>
> But as you can see the uniqueVersion is not being generated on my filenames..
> D:\workspaces\crowd\test2>mvn deploy
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Maven Alfresco Crowd Security AMP
> [INFO] task-segment: [deploy]
> [INFO] ------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> [INFO] [jar:jar]
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] Building jar: D:\workspaces\crowd\test2\target\alfresco-crowd-security-0.
> 2.2.jar
> [INFO] [install:install]
> [INFO] Installing D:\workspaces\crowd\test2\target\alfresco-crowd-security-0.2.2
> .jar to D:\profiles\drand\.m2\repository\org\alfresco\crowd\alfresco-crowd-secur
> ity\0.2.2\alfresco-crowd-security-0.2.2.jar
> [INFO] [deploy:deploy]
> altDeploymentRepository = null
> WAGON_VERSION: 1.0-beta-2
> Uploading: https://forge.amnesty.org/maven/repos/public-releases/org/alfresco/cr
> owd/alfresco-crowd-security/0.2.2/alfresco-crowd-security-0.2.2.jar
> [INFO] Uploading project information for alfresco-crowd-security 0.2.2
> [INFO] Retrieving previous metadata from ai-public-releases-secure3
> [INFO] Uploading repository metadata for: 'artifact org.alfresco.crowd:alfresco-
> crowd-security'
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 12 seconds
> [INFO] Finished at: Tue Jul 15 17:41:07 BST 2008
> [INFO] Final Memory: 9M/16M
> [INFO] ------------------------------------------------------------------------
> D:\workspaces\crowd\test2>
--
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