[ https://issues.apache.org/jira/browse/MDEPLOY-213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15410958#comment-15410958 ]
Hudson commented on MDEPLOY-213: -------------------------------- SUCCESS: Integrated in maven-plugins #7129 (See [https://builds.apache.org/job/maven-plugins/7129/]) [MDEPLOY-212] deploy-file incorrectly deploys attached artifacts [MDEPLOY-213] deploy-file replaces main artifact of a project The deploy-file Mojo now creates a new MavenProject and attaches to this project all artifacts to deploy. This also fixes the use of deprecated code from ArtifactFactory. (gboue: [http://svn.apache.org/viewvc/?view=rev&rev=1755441]) * maven-deploy-plugin/src/it/3rd-party-pom-with-extras * maven-deploy-plugin/src/it/3rd-party-pom-with-extras/invoker.properties * maven-deploy-plugin/src/it/3rd-party-pom-with-extras/pom.xml * maven-deploy-plugin/src/it/3rd-party-pom-with-extras/test-0.1-src.tar.gz * maven-deploy-plugin/src/it/3rd-party-pom-with-extras/test-0.1.pom * maven-deploy-plugin/src/it/3rd-party-pom-with-extras/test-0.1.tar.gz * maven-deploy-plugin/src/it/3rd-party-pom-with-extras/test-0.1.zip * maven-deploy-plugin/src/it/3rd-party-pom-with-extras/test.properties * maven-deploy-plugin/src/it/3rd-party-pom-with-extras/verify.bsh * maven-deploy-plugin/src/it/MDEPLOY-212 * maven-deploy-plugin/src/it/MDEPLOY-212/invoker.properties * maven-deploy-plugin/src/it/MDEPLOY-212/pom.xml * maven-deploy-plugin/src/it/MDEPLOY-212/src * maven-deploy-plugin/src/it/MDEPLOY-212/src/main * maven-deploy-plugin/src/it/MDEPLOY-212/src/main/java * maven-deploy-plugin/src/it/MDEPLOY-212/src/main/java/org * maven-deploy-plugin/src/it/MDEPLOY-212/src/main/java/org/apache * maven-deploy-plugin/src/it/MDEPLOY-212/src/main/java/org/apache/maven * maven-deploy-plugin/src/it/MDEPLOY-212/src/main/java/org/apache/maven/test * maven-deploy-plugin/src/it/MDEPLOY-212/src/main/java/org/apache/maven/test/HelloWorld.java * maven-deploy-plugin/src/it/MDEPLOY-212/test-1.0.tar.gz * maven-deploy-plugin/src/it/MDEPLOY-212/test-1.0.zip * maven-deploy-plugin/src/it/MDEPLOY-212/verify.bsh * maven-deploy-plugin/src/it/MDEPLOY-213 * maven-deploy-plugin/src/it/MDEPLOY-213/invoker.properties * maven-deploy-plugin/src/it/MDEPLOY-213/pom.xml * maven-deploy-plugin/src/it/MDEPLOY-213/src * maven-deploy-plugin/src/it/MDEPLOY-213/src/main * maven-deploy-plugin/src/it/MDEPLOY-213/src/main/java * maven-deploy-plugin/src/it/MDEPLOY-213/src/main/java/org * maven-deploy-plugin/src/it/MDEPLOY-213/src/main/java/org/apache * maven-deploy-plugin/src/it/MDEPLOY-213/src/main/java/org/apache/maven * maven-deploy-plugin/src/it/MDEPLOY-213/src/main/java/org/apache/maven/test * maven-deploy-plugin/src/it/MDEPLOY-213/src/main/java/org/apache/maven/test/HelloWorld.java * maven-deploy-plugin/src/it/MDEPLOY-213/test-1.0.tar.gz * maven-deploy-plugin/src/it/MDEPLOY-213/test-1.0.zip * maven-deploy-plugin/src/it/MDEPLOY-213/verify.bsh * maven-deploy-plugin/src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java * maven-deploy-plugin/src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java > deploy-file replaces main artifact of a project > ----------------------------------------------- > > Key: MDEPLOY-213 > URL: https://issues.apache.org/jira/browse/MDEPLOY-213 > Project: Maven Deploy Plugin > Issue Type: Bug > Components: deploy:deploy-file > Affects Versions: 2.8.2 > Reporter: Brian Oliver > Assignee: Guillaume Boué > Fix For: 3.0.0 > > > When using the deploy-file goal in a project (not from the command-line), the > specified file will replace the artifact of the current project, which may > later lead to project artifact corruption, especially in a multi-module > build. Instead the deploy-file goal should not touch the project artifact, > or it should be conditionally set. > The offending line should be removed from DeployFileMojo > {code} > //project.setArtifact( artifact ); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)