Fix duplicate invocation of same plugins due to needless fork of maven-source-plugin

- Fixes #1355
This commit is contained in:
Trustin Lee 2013-05-13 16:03:00 +09:00
parent f4ad6173ca
commit c3b0a9c6b8
1 changed files with 14 additions and 1 deletions

15
pom.xml
View File

@ -402,16 +402,29 @@
<version>2.3.7</version>
<extensions>true</extensions>
</plugin>
<plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<!--
~ This workaround prevents Maven from executing the 'generate-sources' phase twice.
~ See http://jira.codehaus.org/browse/MSOURCES-13
~ and http://blog.peterlynch.ca/2010/05/maven-how-to-prevent-generate-sources.html
-->
<execution>
<id>attach-sources</id>
<phase>invalid</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
<execution>
<id>attach-sources-no-fork</id>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>