You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cd...@apache.org on 2014/11/11 11:10:48 UTC

git commit: [flex-utilities] [refs/heads/develop] - Adjusted the pom to automatically create a source zip distribution.

Repository: flex-utilities
Updated Branches:
  refs/heads/develop c53a472f9 -> 75be97d76


Adjusted the pom to automatically create a source zip distribution.


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/75be97d7
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/75be97d7
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/75be97d7

Branch: refs/heads/develop
Commit: 75be97d7604f047c0e4216f8ab3223bb7c9e76dd
Parents: c53a472
Author: Christofer Dutz <ch...@codecentric.de>
Authored: Tue Nov 11 11:10:41 2014 +0100
Committer: Christofer Dutz <ch...@codecentric.de>
Committed: Tue Nov 11 11:10:41 2014 +0100

----------------------------------------------------------------------
 flex-tool-api/pom.xml | 102 +++++++++++++++++++++++++++++++++++++--------
 1 file changed, 84 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/75be97d7/flex-tool-api/pom.xml
----------------------------------------------------------------------
diff --git a/flex-tool-api/pom.xml b/flex-tool-api/pom.xml
index 4b58d7a..63ee0d0 100644
--- a/flex-tool-api/pom.xml
+++ b/flex-tool-api/pom.xml
@@ -56,25 +56,91 @@
     </scm>
 
     <build>
-        <plugins>
-            <plugin>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <source>1.6</source>
-                    <target>1.6</target>
-                </configuration>
-            </plugin>
-        </plugins>
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <artifactId>maven-compiler-plugin</artifactId>
+                    <configuration>
+                        <source>1.6</source>
+                        <target>1.6</target>
+                    </configuration>
+                </plugin>
+            </plugins>
+        </pluginManagement>
     </build>
 
-    <reporting>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-javadoc-plugin</artifactId>
-                <version>2.10.1</version>
-            </plugin>
-        </plugins>
-    </reporting>
+    <profiles>
+        <profile>
+            <id>apache-release</id>
+            <properties>
+                <isApacheRelease>true</isApacheRelease>
+            </properties>
+
+            <build>
+                <pluginManagement>
+                    <plugins>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-javadoc-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>attach-javadocs</id>
+                                    <goals>
+                                        <goal>jar</goal>
+                                    </goals>
+                                    <phase>package</phase>
+                                </execution>
+                            </executions>
+                        </plugin>
+                    </plugins>
+                </pluginManagement>
+
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-assembly-plugin</artifactId>
+                        <version>2.5.1</version>
+                        <executions>
+                            <execution>
+                                <id>source-release-assembly</id>
+                                <!-- note: this is configured above to run only at execution root -->
+                                <configuration>
+                                    <!-- Prevent Maven from releasing the source release assembly to the Maven repos -->
+                                    <attach>false</attach>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-source-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>attach-sources-nf</id>
+                                <goals>
+                                    <goal>jar-no-fork</goal>
+                                </goals>
+                            </execution>
+                            <execution>
+                                <id>attach-sources</id>
+                                <!-- turn off the plain jar one -->
+                                <phase/>
+                            </execution>
+                        </executions>
+                    </plugin>
+
+                    <plugin>
+                        <groupId>org.apache.rat</groupId>
+                        <artifactId>apache-rat-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>default-cli</id>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 
 </project>
\ No newline at end of file