You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streams.apache.org by le...@apache.org on 2012/12/20 15:27:20 UTC

svn commit: r1424488 - /incubator/streams/streams-master-pom/trunk/pom.xml

Author: letourneau
Date: Thu Dec 20 14:27:20 2012
New Revision: 1424488

URL: http://svn.apache.org/viewvc?rev=1424488&view=rev
Log:
adding packaging dependecies to master

Modified:
    incubator/streams/streams-master-pom/trunk/pom.xml

Modified: incubator/streams/streams-master-pom/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/streams/streams-master-pom/trunk/pom.xml?rev=1424488&r1=1424487&r2=1424488&view=diff
==============================================================================
--- incubator/streams/streams-master-pom/trunk/pom.xml (original)
+++ incubator/streams/streams-master-pom/trunk/pom.xml Thu Dec 20 14:27:20 2012
@@ -75,10 +75,145 @@
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+     <sourceReleaseAssemblyDescriptor>streams-source-release-zip-tar</sourceReleaseAssemblyDescriptor>  
   </properties>
+
+<build>
+    <plugins>
+      <!-- requires Java 6 -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>enforce-java</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requireJavaVersion>
+                  <message>Java 6 or higher is required to compile this module</message>
+                  <version>1.6</version>
+                </requireJavaVersion>
+              </rules>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+      <!-- Attach sources for all builds -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-source-plugin</artifactId>
+        <inherited>true</inherited>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <!-- Compile for Java 6, source is Java 6 -->
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.6</source>
+          <target>1.6</target>
+        </configuration>
+      </plugin>
+
+      <!-- Add license to artifacts -->
+      <plugin>
+         <groupId>org.apache.maven.plugins</groupId>
+         <artifactId>maven-remote-resources-plugin</artifactId>
+         <executions>
+           <execution>
+             <configuration>
+               <resourceBundles>
+                <resourceBundle>org.apache:apache-incubator-disclaimer-resource-bundle:1.1</resourceBundle>
+                <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
+               </resourceBundles>
+             </configuration>
+           </execution>
+         </executions>
+       </plugin>
+
+       <plugin>
+          <artifactId>maven-assembly-plugin</artifactId>
+          <dependencies>
+            <dependency>
+              <groupId>org.apache.streams</groupId>
+              <artifactId>source-assembly</artifactId>
+              <version>0.1-SNAPSHOT</version>
+            </dependency>
+          </dependencies>
+        </plugin>
+
+       <plugin>
+          <groupId>org.apache.rat</groupId>
+          <artifactId>apache-rat-plugin</artifactId>
+          <version>0.8</version>
+          <executions>
+            <execution>
+              <configuration>
+                <reportFile>${project.build.directory}/maven-shared-archive-resources/META-INF/RAT-REPORT</reportFile>
+              </configuration> 
+            </execution>
+          </executions>
+        </plugin>
+    </plugins>
+  </build>
   
   
   <profiles>
+    <profile>
+      <id>apache-release</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.rat</groupId>
+            <artifactId>apache-rat-plugin</artifactId>
+            <executions>
+              <execution>
+                <phase>compile</phase>
+                <goals>
+                  <goal>check</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>          
+          <plugin>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <dependencies>
+              <dependency>
+                <groupId>org.apache.streams</groupId>
+                <artifactId>source-assembly</artifactId>
+                <version>0.1-SNAPSHOT</version>
+              </dependency>
+            </dependencies>
+          </plugin>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>license-maven-plugin</artifactId>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>add-third-party</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+
   <profile>
     <id>release-sign-artifacts</id>
     <activation>