You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "md (JIRA)" <ji...@codehaus.org> on 2008/06/11 22:43:12 UTC

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

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

md commented on MSOURCES-8:
---------------------------

I concur with Chris Hilton especially on #2. 

If the source plugin needs to ensure that generate-sources has run, then it should first check if it has already  run. This is a big problem for us. Running generate-sources twice causing source code to be generated with different identifiers the second time ( 3rd party tools that we have to use ). We should at the very least have a way in the pom.xml to configure the source plugin to not run it. We never run source:jar from the command line. In my opinion maven developers have prioritized an uncommon command line usage usa case over the more common use case of users simply including the source plugin in the build section.

This bug should be re-opened.


> maven-source-plugin causes generate-sources phase to execute twice
> ------------------------------------------------------------------
>
>                 Key: MSOURCES-8
>                 URL: http://jira.codehaus.org/browse/MSOURCES-8
>             Project: Maven 2.x 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira