[ http://jira.codehaus.org/browse/MSOURCES-8?page=comments#action_68981 ] 

Andreas Schildbach commented on MSOURCES-8:
-------------------------------------------

I suspect the @execute phase="generate-sources" in the Mojo is responsible for 
this behaviour. What is this good for? The Mojo is bound with @phase package, 
so generate-sources should already have run.

> 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 Sources Plugin
>         Type: Bug

>     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

Reply via email to