You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vadim Kopichenko (JIRA)" <ji...@codehaus.org> on 2013/12/10 17:47:45 UTC

[jira] (MSOURCES-8) maven-source-plugin causes generate-sources phase to execute twice

    [ https://jira.codehaus.org/browse/MSOURCES-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=337045#comment-337045 ] 

Vadim Kopichenko commented on MSOURCES-8:
-----------------------------------------

Workaround: http://stackoverflow.com/questions/4251488/maven-release-plugin-fails-source-artifacts-getting-deployed-twice
                
> maven-source-plugin causes generate-sources phase to execute twice
> ------------------------------------------------------------------
>
>                 Key: MSOURCES-8
>                 URL: https://jira.codehaus.org/browse/MSOURCES-8
>             Project: Maven Source Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Andreas Schildbach
>
> Due to the lack of documentation, I configured the plugin as follows, in order to install sources when doing "mvn install":
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-source-plugin</artifactId>
> 				<executions>
> 					<execution>
> 						<phase>install</phase>
> 						<goals>
> 							<goal>jar</goal>
> 						</goals>
> 					</execution>
> 				</executions>
> 			</plugin>
> Unfortunately, "mvn install" causes the generate-sources phase to execute twice, which can manifest for example in an antrun-task executing twice.

--
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