From d56ff70370bb83c83afa67f6ab9931a7a2c7f53f Mon Sep 17 00:00:00 2001 From: Doug Morato <dm@corp.io> Date: Wed, 16 Sep 2015 21:08:51 -0400 Subject: [PATCH] Additional pom preparations for releasing into maven OSS --- pom.xml | 122 +++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 89 insertions(+), 33 deletions(-) diff --git a/pom.xml b/pom.xml index 97af961bb..f30c97c30 100644 --- a/pom.xml +++ b/pom.xml @@ -13,6 +13,11 @@ <inceptionYear>2006</inceptionYear> <url>https://github.com/WebGoat/WebGoat</url> + <organization> + <name>OWASP</name> + <url>https://webgoat.github.io/</url> + </organization> + <licenses> <license> <name>GNU General Public License, version 2</name> @@ -59,6 +64,10 @@ <email>doug.morato@owasp.org</email> <organization>OWASP</organization> <organizationUrl>https://github.com/dougmorato</organizationUrl> + <timezone>America/New_York</timezone> + <properties> + <picUrl>https://avatars2.githubusercontent.com/u/9654?v=3&s=150</picUrl> + </properties> </developer> </developers> @@ -83,11 +92,18 @@ <url>https://github.com/WebGoat/WebGoat/issues</url> </issueManagement> + <ciManagement> + <system>Travis CI</system> + <url>https://travis-ci.org/WebGoat/WebGoat</url> + </ciManagement> + <properties> <!-- Use UTF-8 Encoding --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + <!-- This build number will be ubdated by Travis-CI --> + <build.number>build</build.number> <!-- Shared properties with plugins and version numbers across submodules--> <activation.version>1.1</activation.version> @@ -120,8 +136,10 @@ <mail.version>1.4.2</mail.version> <maven-compiler-plugin.version>3.1</maven-compiler-plugin.version> <maven-failsafe-plugin.version>2.18.1</maven-failsafe-plugin.version> + <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version> <maven-jar-plugin.version>2.6</maven-jar-plugin.version> <maven-javadoc-plugin.version>2.10.3</maven-javadoc-plugin.version> + <maven-release-plugin.version>2.5.2</maven-release-plugin.version> <maven-source-plugin.version>2.4</maven-source-plugin.version> <maven-surefire-plugin.version>2.18.1</maven-surefire-plugin.version> <maven-war-plugin.version>2.4</maven-war-plugin.version> @@ -150,45 +168,83 @@ <url>https://oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement> + + <profiles> + <profile> + <id>release</id> + <build> + <plugins> + <plugin> + <groupId>org.sonatype.plugins</groupId> + <artifactId>nexus-staging-maven-plugin</artifactId> + <version>${nexus-staging-maven-plugin.version}</version> + <extensions>true</extensions> + <configuration> + <serverId>ossrh</serverId> + <nexusUrl>https://oss.sonatype.org/</nexusUrl> + <autoReleaseAfterClose>true</autoReleaseAfterClose> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>${maven-source-plugin.version}</version> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar-no-fork</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>${maven-javadoc-plugin.version}</version> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <version>${maven-gpg-plugin.version}</version> + <executions> + <execution> + <id>sign-artifacts</id> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> + <build> <plugins> <plugin> - <groupId>org.sonatype.plugins</groupId> - <artifactId>nexus-staging-maven-plugin</artifactId> - <version>${nexus-staging-maven-plugin.version}</version> - <extensions>true</extensions> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <version>${maven-release-plugin.version}</version> <configuration> - <serverId>ossrh</serverId> - <nexusUrl>https://oss.sonatype.org/</nexusUrl> - <autoReleaseAfterClose>true</autoReleaseAfterClose> + <autoVersionSubmodules>true</autoVersionSubmodules> + <useReleaseProfile>false</useReleaseProfile> + <releaseProfiles>release</releaseProfiles> + <tagNameFormat>@{project.version}</tagNameFormat> + <goals>deploy</goals> </configuration> </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <version>${maven-source-plugin.version}</version> - <executions> - <execution> - <id>attach-sources</id> - <goals> - <goal>jar-no-fork</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <version>${maven-javadoc-plugin.version}</version> - <executions> - <execution> - <id>attach-javadocs</id> - <goals> - <goal>jar</goal> - </goals> - </execution> - </executions> - </plugin> </plugins> </build> + </project>