[ https://jira.codehaus.org/browse/MNG-5684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=352399#comment-352399 ]
Max Norris commented on MNG-5684: --------------------------------- I know this is closed, but a little more information on this in case someone comes looking for this issue. Between 3.2.2 and 3.2.3 this problem popped up for me as well doing a release: {{-DdevelopmentVersion=2.1.5-SNAPSHOT -DreleaseVersion=2.1.4 -Darguments=-DskipTests -Dresume=false release:prepare release:perform}} I traced it down to the way I defined the maven-source-plugin. It looked like this: {code:xml} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.3</version> <executions> <execution> <id>attach-sources</id> <phase>package</phase> <goals> <goal>jar-no-fork</goal> <goal>test-jar-no-fork</goal> </goals> </execution> </executions> </plugin> {code} When I deleted the entire *executions* element it worked fine. This does not happen in 3.2.1 or 3.2.2. > deployment happens twice > ------------------------ > > Key: MNG-5684 > URL: https://jira.codehaus.org/browse/MNG-5684 > Project: Maven > Issue Type: Bug > Components: Deployment, Plugins and Lifecycle > Affects Versions: 3.2.3 > Environment: Windows 7, Java 8. Happened on Linux distributions (also > Java 8) as well. > Reporter: Tobias Stoeckmann > Attachments: 3.2.2-clean-install-deploy.log, > 3.2.3-clean-install-deploy.log, my-app.zip > > > Since version 3.2.3, "clean install deploy" will deploy javadoc and source > jars twice, which fails on our deployment policy. Release versions can be > deployed only once. > "clean deploy" fixes the issue, "clean install deploy" triggers it. "clean > install" alone is okay, too. It installs javadoc and source jars only once. > Please see attached a minimal example project, it's created through > archetype. I've added javadoc and install plugin, as well as > distributionManagement to deploy into "test" directory of user's home. -- This message was sent by Atlassian JIRA (v6.1.6#6162)