NIFI-270 updating poms approaching release - about to practice another staging build

This commit is contained in:
joewitt 2015-01-16 11:59:49 -05:00
parent 314241ba81
commit a2f63c7c88
2 changed files with 93 additions and 112 deletions

View File

@ -59,8 +59,8 @@
<connection>scm:git:git://git.apache.org/incubator-nifi.git</connection> <connection>scm:git:git://git.apache.org/incubator-nifi.git</connection>
<developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/incubator-nifi.git</developerConnection> <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/incubator-nifi.git</developerConnection>
<url>https://git-wip-us.apache.org/repos/asf?p=incubator-nifi.git</url> <url>https://git-wip-us.apache.org/repos/asf?p=incubator-nifi.git</url>
<tag>HEAD</tag> <tag>HEAD</tag>
</scm> </scm>
<issueManagement> <issueManagement>
<system>JIRA</system> <system>JIRA</system>
<url>https://issues.apache.org/jira/browse/NIFI</url> <url>https://issues.apache.org/jira/browse/NIFI</url>
@ -68,7 +68,7 @@
<properties> <properties>
<maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.target>1.7</maven.compiler.target>
<maven.version>3.0.5</maven.version> <maven.min-version>3.0.5</maven.min-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties> </properties>
@ -144,24 +144,24 @@
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>2.5.1</version> <version>2.5.1</version>
<configuration> <configuration>
<useReleaseProfile>true</useReleaseProfile> <useReleaseProfile>true</useReleaseProfile>
<releaseProfiles>apache-release</releaseProfiles> <releaseProfiles>apache-release</releaseProfiles>
<autoVersionSubmodules>true</autoVersionSubmodules> <autoVersionSubmodules>true</autoVersionSubmodules>
<goals>deploy</goals> <goals>deploy</goals>
<tagNameFormat>@{project.artifactId}-@{project.version}</tagNameFormat> <tagNameFormat>@{project.artifactId}-@{project.version}</tagNameFormat>
<pushChanges>false</pushChanges> <pushChanges>false</pushChanges>
<localCheckout>true</localCheckout> <localCheckout>true</localCheckout>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
<id>default</id> <id>default</id>
<goals> <goals>
<goal>perform</goal> <goal>perform</goal>
</goals> </goals>
<configuration> <configuration>
<pomFileName>maven-plugins/nar-maven-plugin/pom.xml</pomFileName> <pomFileName>maven-plugins/nar-maven-plugin/pom.xml</pomFileName>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
@ -179,16 +179,16 @@
</plugins> </plugins>
</pluginManagement> </pluginManagement>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.sonatype.plugins</groupId> <groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId> <artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.5</version> <version>1.6.5</version>
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<serverId>repository.apache.org</serverId> <serverId>repository.apache.org</serverId>
<nexusUrl>https://repository.apache.org/</nexusUrl> <nexusUrl>https://repository.apache.org/</nexusUrl>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId> <artifactId>maven-plugin-plugin</artifactId>
@ -209,6 +209,16 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
<excludes>
<exclude>nb-configuration.xml</exclude>
<exclude>nbactions.xml</exclude>
</excludes>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
<dependencies> <dependencies>
@ -237,4 +247,27 @@
<version>3.3</version> <version>3.3</version>
</dependency> </dependency>
</dependencies> </dependencies>
<profiles>
<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> </project>

View File

@ -19,6 +19,7 @@
<groupId>org.apache</groupId> <groupId>org.apache</groupId>
<artifactId>apache</artifactId> <artifactId>apache</artifactId>
<version>16</version> <version>16</version>
<relativePath />
</parent> </parent>
<groupId>org.apache.nifi</groupId> <groupId>org.apache.nifi</groupId>
<artifactId>nifi-parent</artifactId> <artifactId>nifi-parent</artifactId>
@ -53,13 +54,8 @@
<archive>http://mail-archives.apache.org/mod_mbox/incubator-nifi-commits</archive> <archive>http://mail-archives.apache.org/mod_mbox/incubator-nifi-commits</archive>
</mailingList> </mailingList>
</mailingLists> </mailingLists>
<!--
! This marked as deprecated for Maven 3.X. This is checked by maven-enforcer-plugin
! http://jira.codehaus.org/browse/MNG-4840
! http://jira.codehaus.org/browse/MNG-5297
-->
<prerequisites> <prerequisites>
<maven>${maven.version}</maven> <maven>${maven.min-version}</maven>
</prerequisites> </prerequisites>
<modules> <modules>
<module>commons</module> <module>commons</module>
@ -74,6 +70,7 @@
<connection>scm:git:git://git.apache.org/incubator-nifi.git</connection> <connection>scm:git:git://git.apache.org/incubator-nifi.git</connection>
<developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/incubator-nifi.git</developerConnection> <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/incubator-nifi.git</developerConnection>
<url>https://git-wip-us.apache.org/repos/asf?p=incubator-nifi.git</url> <url>https://git-wip-us.apache.org/repos/asf?p=incubator-nifi.git</url>
<tag>HEAD</tag>
</scm> </scm>
<issueManagement> <issueManagement>
<system>JIRA</system> <system>JIRA</system>
@ -82,7 +79,7 @@
<properties> <properties>
<maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.target>1.7</maven.compiler.target>
<maven.version>3.0.5</maven.version> <maven.min-version>3.0.5</maven.min-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<org.slf4j.version>1.7.8</org.slf4j.version> <org.slf4j.version>1.7.8</org.slf4j.version>
@ -91,7 +88,6 @@
<spring.version>4.1.2.RELEASE</spring.version> <spring.version>4.1.2.RELEASE</spring.version>
<spring.security.version>3.2.5.RELEASE</spring.security.version> <spring.security.version>3.2.5.RELEASE</spring.security.version>
<jersey.version>1.18.3</jersey.version> <jersey.version>1.18.3</jersey.version>
<sealJars>false</sealJars>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>
@ -894,7 +890,6 @@
<configuration> <configuration>
<archive> <archive>
<manifestEntries> <manifestEntries>
<Sealed>${sealJars}</Sealed>
<Implementation-Build>${mvngit.commit.id}</Implementation-Build> <Implementation-Build>${mvngit.commit.id}</Implementation-Build>
</manifestEntries> </manifestEntries>
</archive> </archive>
@ -919,16 +914,25 @@
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>2.5.1</version> <version>2.5.1</version>
<configuration> <configuration>
<arguments>-P apache-release,check-licenses</arguments> <useReleaseProfile>true</useReleaseProfile>
<releaseProfiles>apache-release</releaseProfiles>
<autoVersionSubmodules>true</autoVersionSubmodules> <autoVersionSubmodules>true</autoVersionSubmodules>
<goals>clean compile javadoc:aggregate deploy</goals> <goals>deploy</goals>
<preparationGoals>clean compile javadoc:aggregate verify</preparationGoals> <tagNameFormat>@{project.artifactId}-@{project.version}</tagNameFormat>
<tagNameFormat>@{project.version}</tagNameFormat>
<releaseProfiles>seal-jars</releaseProfiles>
<useReleaseProfile>false</useReleaseProfile>
<pushChanges>false</pushChanges> <pushChanges>false</pushChanges>
<localCheckout>true</localCheckout> <localCheckout>true</localCheckout>
</configuration> </configuration>
<executions>
<execution>
<id>default</id>
<goals>
<goal>perform</goal>
</goals>
<configuration>
<pomFileName>nifi/pom.xml</pomFileName>
</configuration>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
@ -943,6 +947,16 @@
</plugins> </plugins>
</pluginManagement> </pluginManagement>
<plugins> <plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.5</version>
<extensions>true</extensions>
<configuration>
<serverId>repository.apache.org</serverId>
<nexusUrl>https://repository.apache.org/</nexusUrl>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>
@ -962,7 +976,7 @@
</plugins> </plugins>
</requireSameVersions> </requireSameVersions>
<requireMavenVersion> <requireMavenVersion>
<version>${maven.version}</version> <version>${maven.min-version}</version>
</requireMavenVersion> </requireMavenVersion>
</rules> </rules>
</configuration> </configuration>
@ -988,78 +1002,12 @@
<plugin> <plugin>
<groupId>org.apache.nifi</groupId> <groupId>org.apache.nifi</groupId>
<artifactId>nar-maven-plugin</artifactId> <artifactId>nar-maven-plugin</artifactId>
<version>0.0.2-test-incubating-SNAPSHOT</version> <version>0.0.2-test-incubating</version>
<extensions>true</extensions> <extensions>true</extensions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles> <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> <profile>
<!-- Automatically check for licenses. <!-- Automatically check for licenses.
Activate with -P check-licenses --> Activate with -P check-licenses -->