maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@codehaus.org>
Subject [jira] (MDEPLOY-152) updateReleaseInfo for deploy-file does not work with Maven 3
Date Tue, 10 Sep 2013 17:33:52 GMT

     [ https://jira.codehaus.org/browse/MDEPLOY-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Scholte updated MDEPLOY-152:
-----------------------------------

    Description: 
When deploying file with {{-DupdateReleaseInfo=true}} with maven3 {{<release></release>}}
tag is not updated/created, but with maven2 everything is good. Here is the full log:
{noformat}
$mvn -version
	Apache Maven 3.0.4 (r1232337; 2012-01-17 10:44:56+0200)
	Maven home: /home/user/java/apache-maven-3.0.4
	Java version: 1.7.0_04, vendor: Oracle Corporation
	Java home: /opt/jdk1.7.0_04/jre
	Default locale: en_US, platform encoding: UTF-8
	OS name: "linux", version: "2.6.32-40-generic-pae", arch: "i386", family: "unix"

$mvn -e -DupdateReleaseInfo=true org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file
-Durl=file:///home/user/test/ldClientDeployTest/repository -Dfile=/home/user/java/workspace/testing/mvnDeployFileIssue/test-proj/target/test-proj-1.0-SNAPSHOT.jar
-DpomFile=/home/user/java/workspace/testing/mvnDeployFileIssue/test-proj/pom.xml -Dpackaging=jar

$cat /home/user/test/ldClientDeployTest/repository/com/example/test-proj/maven-metadata.xml

	<?xml version="1.0" encoding="UTF-8"?>
	<metadata>
	  <groupId>com.example</groupId>
	  <artifactId>test-proj</artifactId>
	  <versioning>
	    <versions>
	      <version>1.0-SNAPSHOT</version>
	    </versions>
	    <lastUpdated>20120702111039</lastUpdated>
	  </versioning>
	</metadata>
$M2_HOME=/home/user/java/apache-maven-2.2.1/
$PATH=$M2_HOME/bin:$PATH
$mvn -version
	Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300)
	Java version: 1.7.0_04
	Java home: /opt/jdk1.7.0_04/jre
	Default locale: en_US, platform encoding: UTF-8
	OS name: "linux" version: "2.6.32-40-generic-pae" arch: "i386" Family: "unix"

$cat /home/user/test/ldClientDeployTest/repository/com/example/test-proj/maven-metadata.xml

	<?xml version="1.0" encoding="UTF-8"?>
	<metadata>
	  <groupId>com.example</groupId>
	  <artifactId>test-proj</artifactId>
	  <versioning>
	    <release>1.0-SNAPSHOT</release>
	    <versions>
	      <version>1.0-SNAPSHOT</version>
	    </versions>
	    <lastUpdated>20120702111359</lastUpdated>
	  </versioning>
	</metadata>
{noformat}

  was:
When deploying file with -DupdateReleaseInfo=true with maven3 <release></release>
tag is not updated/created, but with maven2 everything is good. Here is the full log:

$mvn -version
	Apache Maven 3.0.4 (r1232337; 2012-01-17 10:44:56+0200)
	Maven home: /home/user/java/apache-maven-3.0.4
	Java version: 1.7.0_04, vendor: Oracle Corporation
	Java home: /opt/jdk1.7.0_04/jre
	Default locale: en_US, platform encoding: UTF-8
	OS name: "linux", version: "2.6.32-40-generic-pae", arch: "i386", family: "unix"

$mvn -e -DupdateReleaseInfo=true org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file
-Durl=file:///home/user/test/ldClientDeployTest/repository -Dfile=/home/user/java/workspace/testing/mvnDeployFileIssue/test-proj/target/test-proj-1.0-SNAPSHOT.jar
-DpomFile=/home/user/java/workspace/testing/mvnDeployFileIssue/test-proj/pom.xml -Dpackaging=jar

$cat /home/user/test/ldClientDeployTest/repository/com/example/test-proj/maven-metadata.xml

	<?xml version="1.0" encoding="UTF-8"?>
	<metadata>
	  <groupId>com.example</groupId>
	  <artifactId>test-proj</artifactId>
	  <versioning>
	    <versions>
	      <version>1.0-SNAPSHOT</version>
	    </versions>
	    <lastUpdated>20120702111039</lastUpdated>
	  </versioning>
	</metadata>
$M2_HOME=/home/user/java/apache-maven-2.2.1/
$PATH=$M2_HOME/bin:$PATH
$mvn -version
	Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300)
	Java version: 1.7.0_04
	Java home: /opt/jdk1.7.0_04/jre
	Default locale: en_US, platform encoding: UTF-8
	OS name: "linux" version: "2.6.32-40-generic-pae" arch: "i386" Family: "unix"

$cat /home/user/test/ldClientDeployTest/repository/com/example/test-proj/maven-metadata.xml

	<?xml version="1.0" encoding="UTF-8"?>
	<metadata>
	  <groupId>com.example</groupId>
	  <artifactId>test-proj</artifactId>
	  <versioning>
	    <release>1.0-SNAPSHOT</release>
	    <versions>
	      <version>1.0-SNAPSHOT</version>
	    </versions>
	    <lastUpdated>20120702111359</lastUpdated>
	  </versioning>
	</metadata>

    
> updateReleaseInfo for deploy-file does not work with Maven 3
> ------------------------------------------------------------
>
>                 Key: MDEPLOY-152
>                 URL: https://jira.codehaus.org/browse/MDEPLOY-152
>             Project: Maven Deploy Plugin
>          Issue Type: Bug
>    Affects Versions: 2.7
>         Environment: Linux, maven 3.0.4
>            Reporter: Ivan Sopov
>
> When deploying file with {{-DupdateReleaseInfo=true}} with maven3 {{<release></release>}}
tag is not updated/created, but with maven2 everything is good. Here is the full log:
> {noformat}
> $mvn -version
> 	Apache Maven 3.0.4 (r1232337; 2012-01-17 10:44:56+0200)
> 	Maven home: /home/user/java/apache-maven-3.0.4
> 	Java version: 1.7.0_04, vendor: Oracle Corporation
> 	Java home: /opt/jdk1.7.0_04/jre
> 	Default locale: en_US, platform encoding: UTF-8
> 	OS name: "linux", version: "2.6.32-40-generic-pae", arch: "i386", family: "unix"
> $mvn -e -DupdateReleaseInfo=true org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file
-Durl=file:///home/user/test/ldClientDeployTest/repository -Dfile=/home/user/java/workspace/testing/mvnDeployFileIssue/test-proj/target/test-proj-1.0-SNAPSHOT.jar
-DpomFile=/home/user/java/workspace/testing/mvnDeployFileIssue/test-proj/pom.xml -Dpackaging=jar
> $cat /home/user/test/ldClientDeployTest/repository/com/example/test-proj/maven-metadata.xml

> 	<?xml version="1.0" encoding="UTF-8"?>
> 	<metadata>
> 	  <groupId>com.example</groupId>
> 	  <artifactId>test-proj</artifactId>
> 	  <versioning>
> 	    <versions>
> 	      <version>1.0-SNAPSHOT</version>
> 	    </versions>
> 	    <lastUpdated>20120702111039</lastUpdated>
> 	  </versioning>
> 	</metadata>
> $M2_HOME=/home/user/java/apache-maven-2.2.1/
> $PATH=$M2_HOME/bin:$PATH
> $mvn -version
> 	Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300)
> 	Java version: 1.7.0_04
> 	Java home: /opt/jdk1.7.0_04/jre
> 	Default locale: en_US, platform encoding: UTF-8
> 	OS name: "linux" version: "2.6.32-40-generic-pae" arch: "i386" Family: "unix"
> $cat /home/user/test/ldClientDeployTest/repository/com/example/test-proj/maven-metadata.xml

> 	<?xml version="1.0" encoding="UTF-8"?>
> 	<metadata>
> 	  <groupId>com.example</groupId>
> 	  <artifactId>test-proj</artifactId>
> 	  <versioning>
> 	    <release>1.0-SNAPSHOT</release>
> 	    <versions>
> 	      <version>1.0-SNAPSHOT</version>
> 	    </versions>
> 	    <lastUpdated>20120702111359</lastUpdated>
> 	  </versioning>
> 	</metadata>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message