You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2015/06/05 22:31:30 UTC

svn commit: r1683863 - /myfaces/tobago/trunk/pom.xml

Author: deki
Date: Fri Jun  5 20:31:29 2015
New Revision: 1683863

URL: http://svn.apache.org/r1683863
Log:
TOBAGO-1460: generate-sources ran twice, fix for MSOURCES-8

Modified:
    myfaces/tobago/trunk/pom.xml

Modified: myfaces/tobago/trunk/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/pom.xml?rev=1683863&r1=1683862&r2=1683863&view=diff
==============================================================================
--- myfaces/tobago/trunk/pom.xml (original)
+++ myfaces/tobago/trunk/pom.xml Fri Jun  5 20:31:29 2015
@@ -906,9 +906,20 @@
           <version>2.4.1</version>
         </plugin>
         <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-source-plugin</artifactId>
           <version>2.1.2</version>
+          <executions>
+            <!-- here we override the super-pom attach-sources executionid which
+            calls sources:jar goal. That goals forks the lifecycle, causing
+            the generate-sources phase to be called twice for the install goal.
+            This causes any other plugin bound to the generate-sources phase to
+            be called twice which usually has nasty side effects, let alone
+            creating duplicate processing and longer build times. -->
+            <execution>
+              <id>attach-sources</id>
+              <phase>DISABLE_FORKED_LIFECYCLE_MSOURCES-13</phase>
+            </execution>
+          </executions>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
@@ -1448,7 +1459,33 @@
         </dependencies>
       </dependencyManagement>
     </profile>
-
+    <!-- MSOURCES-13 related workaround overriding super-pom -->
+    <profile>
+      <id>release-profile</id>
+      <activation>
+        <property>
+          <name>performRelease</name>
+          <value>true</value>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <inherited>true</inherited>
+            <artifactId>maven-source-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>attach-sources-no-fork</id>
+                <inherited>true</inherited>
+                <goals>
+                  <goal>jar-no-fork</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 
   <repositories>