SLIDER-672 building release profile
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/ab16e891 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/ab16e891 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/ab16e891 Branch: refs/heads/feature/SLIDER-671_publish_to_maven_central Commit: ab16e8914897e3a0e74e40594084044364078a5f Parents: 165b44b Author: Steve Loughran <[email protected]> Authored: Mon Nov 24 13:37:32 2014 +0000 Committer: Steve Loughran <[email protected]> Committed: Wed Nov 26 15:36:12 2014 +0000 ---------------------------------------------------------------------- pom.xml | 146 +++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 98 insertions(+), 48 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/ab16e891/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 7f73bbd..705bb18 100644 --- a/pom.xml +++ b/pom.xml @@ -203,6 +203,8 @@ <maven-doxia-module-markdown.version>1.4</maven-doxia-module-markdown.version> <maven-enforcer-plugin.version>1.0</maven-enforcer-plugin.version> <maven-exec-plugin.version>1.2.1</maven-exec-plugin.version> + <maven-gpg-plugin.version>1.5</maven-gpg-plugin.version> + <maven-groovydoc-plugin.version>1.3</maven-groovydoc-plugin.version> <maven-jar-plugin.version>2.3.1</maven-jar-plugin.version> <maven.javadoc.version>2.8</maven.javadoc.version> <maven.project.version>2.4</maven.project.version> @@ -1429,7 +1431,77 @@ </execution> </executions> </plugin> - </plugins> + + <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</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + --> + <plugin> + <groupId>com.bluetrainsoftware.maven</groupId> + <artifactId>maven-groovydoc-plugin</artifactId> + <version>${maven-groovydoc-plugin.version}</version> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>attach-docs</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> + + <!-- We want to deploy the artifact to a staging location for perusal --> + <!-- + <plugin> + <inherited>true</inherited> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>${maven-deploy-plugin.version}</version> + <configuration> + <updateReleaseInfo>true</updateReleaseInfo> + </configuration> + </plugin> + --> + </plugins> </build> </profile> @@ -1491,53 +1563,6 @@ </profile> <profile> - <!-- anything for a github release --> - <!-- see https://github.com/github/maven-plugins--> - <!-- this doesn't seem to work and is not in active us--> - <id>github</id> - <properties> - <maven-site-plugin.skipDeploy>false</maven-site-plugin.skipDeploy> - </properties> - <build> - <plugins> - <plugin> - <groupId>com.github.github</groupId> - <artifactId>site-maven-plugin</artifactId> - <version>${github.site.plugin.version}</version> - <inherited>true</inherited> - <configuration> - <message>Creating site for ${project.version}</message> - <dryRun>false</dryRun> - <repositoryName>slider</repositoryName> - <repositoryOwner>hortonworks</repositoryOwner> - </configuration> - <executions> - <execution> - <goals> - <goal>site</goal> - </goals> - <phase>site-deploy</phase> - </execution> - </executions> - </plugin> - - <plugin> - <artifactId>maven-deploy-plugin</artifactId> - <version>${maven-deploy-plugin.version}</version> - <configuration> - <altDeploymentRepository> - internal.repo::default::file://${project.build.directory}/mvn-repo - </altDeploymentRepository> - </configuration> - </plugin> - - - </plugins> - </build> - - </profile> - - <profile> <id>strict</id> <!--enable this if you want to get told off about dependency conflict--> <build> @@ -1572,6 +1597,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> + <version>${maven-gpg-plugin.version}</version> <executions> <execution> <id>sign-artifacts</id> @@ -1608,6 +1634,30 @@ </repository> </repositories> </profile> + + <!-- see https://github.com/rvowles/maven-groovydoc-plugin --> + <profile> + <id>groovydoc</id> + <build> + <plugins> + <plugin> + <groupId>com.bluetrainsoftware.maven</groupId> + <artifactId>maven-groovydoc-plugin</artifactId> + <version>${maven-groovydoc-plugin.version}</version> + <executions> + <execution> + <id>attach-docs</id> + <phase>package</phase> + <goals> + <goal>attach-docs</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles>
