Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Duplicate
-
Affects Version/s: 2.3
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Windows XP SP2
Maven 2.0.7
Java 6 U1
-
Number of attachments :
Description
I am invoking maven as:
mvn deploy -DCCDistribution
The appropriate section of my pom.xml is below.
In the attachment, I've provided the redirected output of "mvn help:effective-pom -DCCDistribution".
And lastly, I've provided a snippet of build console output.
--------- SECTION OF POMNOT BEING HONORED -------->
<profile>
<id>CCDistribution</id>
<activation>
<property>
<name>CCDistribution</name>
</property>
</activation>
<distributionManagement>
<repository>
<id>KenanFX_M2_Repo</id>
<name>KenanFX Maven 2 Repository</name>
<url>ftp://maven.kenan.com/KenanFX/m2_repo</url>
<uniqueVersion>false</uniqueVersion>
</repository>
</distributionManagement>
</profile>
---------------- CONSOLE OUTPUT SNIPPET SHOWING UNIQUE DATESTAMPED VERSIONS, THOUGH NONUNIQUE ARE DESIRED -------->
[INFO] ----------------------------------------------------------------------------
[INFO] Building CCBS UDT Functional API
[INFO] task-segment: [deploy]
[INFO] ----------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing c:\ClearCaseSource\mccm03_view3\single_api_src\udt\pom.xml to C:\Documents and Settings\mccm03\.m2\repository\com\comverse\api\udt\c
cbs-udt\1.0.M1-SNAPSHOT\ccbs-udt-1.0.M1-SNAPSHOT.pom
[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] Retrieving previous build number from KenanFX_M2_Repo
Uploading: ftp://maven.kenan.com/KenanFX/m2_repo/com/comverse/api/udt/ccbs-udt/1.0.M1-SNAPSHOT/ccbs-udt-1.0.M1-SNAPSHOT.pom
721b uploaded
[INFO] Retrieving previous metadata from KenanFX_M2_Repo
[INFO] Uploading repository metadata for: 'artifact com.comverse.api.udt:ccbs-udt'
[INFO] Retrieving previous metadata from KenanFX_M2_Repo
[INFO] Uploading repository metadata for: 'snapshot com.comverse.api.udt:ccbs-udt:1.0.M1-SNAPSHOT'
[INFO] ----------------------------------------------------------------------------
[INFO] Building CCBS UDT Shared
[INFO] task-segment: [deploy]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [jar:jar]
[INFO] Building jar: C:\ClearCaseSource\mccm03_view3\single_api_src\udt\shared\target\ccbs-udt-shared-1.0.M1-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing C:\ClearCaseSource\mccm03_view3\single_api_src\udt\shared\target\ccbs-udt-shared-1.0.M1-SNAPSHOT.jar to C:\Documents and Settings\mc
cm03\.m2\repository\com\comverse\api\udt\ccbs-udt-shared\1.0.M1-SNAPSHOT\ccbs-udt-shared-1.0.M1-SNAPSHOT.jar
[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] Retrieving previous build number from KenanFX_M2_Repo
Uploading: ftp://maven.kenan.com/KenanFX/m2_repo/com/comverse/api/udt/ccbs-udt-shared/1.0.M1-SNAPSHOT/ccbs-udt-shared-1.0.M1-20070718.004617-1.jar
6K uploaded
[INFO] Retrieving previous metadata from KenanFX_M2_Repo
[INFO] Uploading repository metadata for: 'artifact com.comverse.api.udt:ccbs-udt-shared'
[INFO] Retrieving previous metadata from KenanFX_M2_Repo
[INFO] Uploading repository metadata for: 'snapshot com.comverse.api.udt:ccbs-udt-shared:1.0.M1-SNAPSHOT'
[INFO] Retrieving previous metadata from KenanFX_M2_Repo
Attachments
Issue Links
| This issue duplicates: | ||||
| MNG-3885 | Modules of Maven projects are deployed with Timestamp during reactor build when uniqueVersion is set to false in parent profile |
|
|
|
| This issue is duplicated by: | ||||
| MDEPLOY-65 | uniqueVersion does not work when used inside a profile |
|
|
|
| This issue relates to: | ||||
| MASSEMBLY-211 | assembly plugin and jar plugin disagree about whether to use uniqueVersion snapshot names |
|
|
|
| MSHARED-36 | Maven Archiver creates incorrect Class-Path entry in Manifest for deployed snapshots |
|
|
|
| This issue is related to: | ||||
| MSHARED-36 | Maven Archiver creates incorrect Class-Path entry in Manifest for deployed snapshots |
|
|
|
| MJAR-28 | Using the jar plugin with addClasspath and snapshots can create manifest classpath with incorrect jar versions |
|
|
|
| This issue depends upon: | ||||
| MNG-1094 | Repositories' <uniqueVersion> tag is not inhertied to child POMs |
|
|
|
Additionally would like to note that this has something to do with hierarchies.
In my situation, my parent pom has the profile and uniqueVersion false settings.
If I run the mvn deploy from any intermediate level in the project directory tree, (I have parents pointing to children as modules and children pointing to parents as parent projects), I get timestamp-unique deployments of any artifact in the tree. However, if I run mvn deploy from any leaf node (has to be a LEAF), then the non-unique version is deployed.
Here's a sample run output from the same project tree as my original defect submission, only this time, I'm running from a leaf directory project's pom.xml. Notice the non-unique version being uploaded:
---------------------------------->
[INFO] ----------------------------------------------------------------------------
[INFO] Building CCBS UDT EJB
[INFO] task-segment: [deploy]
[INFO] ----------------------------------------------------------------------------
[INFO] [apt:execute {execution: business-gen}]
[INFO] [apt:execute {execution: impl-gen}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [ejb:ejb]
[INFO] Building ejb ccbs-udt-jee-ejb-1.0.M1-SNAPSHOT with ejbVersion 3.0
[INFO] Building jar: c:\ClearCaseSource\mccm03_view3\single_api_src\udt\jee\ejb\target\ccbs-udt-jee-ejb-1.0.M1-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing c:\ClearCaseSource\mccm03_view3\single_api_src\udt\jee\ejb\target\ccbs-udt-jee-ejb-1.0.M1-SNAPSHOT.jar to C:\Documents and Settings\
mccm03\.m2\repository\com\comverse\api\udt\ccbs-udt-jee-ejb\1.0.M1-SNAPSHOT\ccbs-udt-jee-ejb-1.0.M1-SNAPSHOT.jar
[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] Retrieving previous build number from KenanFX_M2_Repo
Uploading: ftp://maven.kenan.com/KenanFX/m2_repo/com/comverse/api/udt/ccbs-udt-jee-ejb/1.0.M1-SNAPSHOT/ccbs-udt-jee-ejb-1.0.M1-SNAPSHOT.jar
3K uploaded
[INFO] Retrieving previous metadata from KenanFX_M2_Repo
[INFO] Uploading repository metadata for: 'snapshot com.comverse.api.udt:ccbs-udt-jee-ejb:1.0.M1-SNAPSHOT'
[INFO] Retrieving previous metadata from KenanFX_M2_Repo
[INFO] Uploading project information for ccbs-udt-jee-ejb 1.0.M1-SNAPSHOT