Fix duplicate invocation of same plugins due to needless fork of maven-source-plugin
- Fixes #1355
This commit is contained in:
parent
f4ad6173ca
commit
c3b0a9c6b8
15
pom.xml
15
pom.xml
@ -402,16 +402,29 @@
|
|||||||
<version>2.3.7</version>
|
<version>2.3.7</version>
|
||||||
<extensions>true</extensions>
|
<extensions>true</extensions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-source-plugin</artifactId>
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
<version>2.2.1</version>
|
<version>2.2.1</version>
|
||||||
<executions>
|
<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>
|
<execution>
|
||||||
<id>attach-sources</id>
|
<id>attach-sources</id>
|
||||||
|
<phase>invalid</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>jar</goal>
|
<goal>jar</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>attach-sources-no-fork</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>jar-no-fork</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
Loading…
Reference in New Issue
Block a user