Repository: incubator-nifi
Updated Branches:
  refs/heads/develop d996060db -> 002926882


NIFI-242 added section for generating release sources and signing and running 
apache rat - borrowed from accumulo


Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/00292688
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/00292688
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/00292688

Branch: refs/heads/develop
Commit: 002926882bbe8e6669236c241087c0bcaef3120b
Parents: d996060
Author: joewitt <joew...@apache.org>
Authored: Fri Jan 9 14:56:59 2015 -0500
Committer: joewitt <joew...@apache.org>
Committed: Fri Jan 9 14:56:59 2015 -0500

----------------------------------------------------------------------
 pom.xml | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 89 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/00292688/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index dc751a1..7cd64c9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -950,4 +950,93 @@
             </plugin>
         </plugins>
     </build>
+    <profiles>
+        <profile>
+            <id>apache-release</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-assembly-plugin</artifactId>
+                        <dependencies>
+                            <dependency>
+                                <groupId>org.apache.apache.resources</groupId>
+                                
<artifactId>apache-source-release-assembly-descriptor</artifactId>
+                                <version>1.0.4</version>
+                            </dependency>
+                        </dependencies>
+                        <executions>
+                            <execution>
+                                <id>source-release-assembly</id>
+                                <goals>
+                                    <goal>single</goal>
+                                </goals>
+                                <phase>validate</phase>
+                                <configuration>
+                                    
<runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
+                                    
<finalName>nifi-${project.version}</finalName>
+                                    <descriptorRefs>
+                                        
<descriptorRef>source-release-zip-tar</descriptorRef>
+                                    </descriptorRefs>
+                                    <tarLongFileFormat>gnu</tarLongFileFormat>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>exec-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>rename-source-release-assembly</id>
+                                <goals>
+                                    <goal>exec</goal>
+                                </goals>
+                                <phase>validate</phase>
+                                <configuration>
+                                    <executable>mv</executable>
+                                    
<workingDirectory>${project.build.directory}</workingDirectory>
+                                    <commandlineArgs>-n 
nifi-${project.version}-source-release.tar.gz 
nifi-${project.version}-src.tar.gz</commandlineArgs>
+                                    <successCodes>
+                                        <successCode>0</successCode>
+                                        <successCode>1</successCode>
+                                    </successCodes>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
+            <!-- Seal jars and skip tests when the
+            apache-release profile is activated. -->
+            <id>seal-jars</id>
+            <properties>
+                <sealJars>true</sealJars>
+                <skipTests>true</skipTests>
+            </properties>
+        </profile>
+        <profile>
+            <!-- Automatically check for licenses.
+            Activate with -P check-licenses -->
+            <id>check-licenses</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.rat</groupId>
+                        <artifactId>apache-rat-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <goals>
+                                    <goal>check</goal>
+                                </goals>
+                                <phase>verify</phase>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>

Reply via email to