Repository: commons-release-plugin Updated Branches: refs/heads/master 8c1a24834 -> e99b3ee8d
Parameterize Nexus repository id in URLs like https://repository.apache.org/content/repositories/orgapachecommons-@NEXUS_REPO_ID@/org/apache/commons/@ARTIFACTID@/@VERSION@/ Project: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/commit/e99b3ee8 Tree: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/tree/e99b3ee8 Diff: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/diff/e99b3ee8 Branch: refs/heads/master Commit: e99b3ee8d8fd4e32bc7f5ba35d2827873b6b9563 Parents: 8c1a248 Author: Gary Gregory <garydgreg...@gmail.com> Authored: Tue May 29 16:15:36 2018 -0600 Committer: Gary Gregory <garydgreg...@gmail.com> Committed: Tue May 29 16:15:36 2018 -0600 ---------------------------------------------------------------------- .../resources/commons-xdoc-templates/vote-txt-template.txt | 2 +- src/main/scripts/generate-xdocs.build.xml | 4 +++- src/main/scripts/generate-xdocs.mojos.xml | 9 +++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/e99b3ee8/src/main/resources/commons-xdoc-templates/vote-txt-template.txt ---------------------------------------------------------------------- diff --git a/src/main/resources/commons-xdoc-templates/vote-txt-template.txt b/src/main/resources/commons-xdoc-templates/vote-txt-template.txt index 1b6ae2a..ecb1082 100755 --- a/src/main/resources/commons-xdoc-templates/vote-txt-template.txt +++ b/src/main/resources/commons-xdoc-templates/vote-txt-template.txt @@ -33,7 +33,7 @@ The Git tag @TAGNAME@ commit for this RC is @TAGCOMMIT@ which you can browse her https://git-wip-us.apache.org/repos/asf?p=commons-@ID@.git;a=tag;h=refs/tags/@TAGNAME@ Maven artifacts are here: - https://repository.apache.org/content/repositories/orgapachecommons-***NNNN***/org/apache/commons/@ARTIFACTID@/@VERSION@/ + https://repository.apache.org/content/repositories/orgapachecommons-@NEXUS_REPO_ID@/org/apache/commons/@ARTIFACTID@/@VERSION@/ These are the Maven artifacts and their hashes in Nexus: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/e99b3ee8/src/main/scripts/generate-xdocs.build.xml ---------------------------------------------------------------------- diff --git a/src/main/scripts/generate-xdocs.build.xml b/src/main/scripts/generate-xdocs.build.xml index 0745599..47885cc 100755 --- a/src/main/scripts/generate-xdocs.build.xml +++ b/src/main/scripts/generate-xdocs.build.xml @@ -49,6 +49,7 @@ <echo level="${level}" message="commons.componentid : ${commons.componentid}" /> <echo level="${level}" message="commons.releaseManagerName : ${commons.releaseManagerName}" /> <echo level="${level}" message="commons.releaseManagerKey : ${commons.releaseManagerKey}" /> + <echo level="${level}" message="commons.nexus.repo.id : ${commons.nexus.repo.id}" /> <echo level="${level}" message="-----[ commons-release:vote-txt - Parameters - END ]-----" /> <echo level="info" message="*** Generating ${project.name} VOTE.txt ***" /> @@ -112,7 +113,8 @@ <filter token="DISTURL" value="${svn.dist.url}"/> <filter token="TAGNAME" value="${git.tag.name}"/> <filter token="TAGCOMMIT" value="${git.tag.commit}"/> - <filter token="SITEURL" value="${svn.site.url}"/> + <filter token="SITEURL" value="${svn.site.url}"/> + <filter token="NEXUS_REPO_ID" value="${commons.nexus.repo.id}"/> </filterset> </copy> http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/e99b3ee8/src/main/scripts/generate-xdocs.mojos.xml ---------------------------------------------------------------------- diff --git a/src/main/scripts/generate-xdocs.mojos.xml b/src/main/scripts/generate-xdocs.mojos.xml index 2f7b198..16de6ce 100755 --- a/src/main/scripts/generate-xdocs.mojos.xml +++ b/src/main/scripts/generate-xdocs.mojos.xml @@ -165,6 +165,15 @@ <type>java.lang.String</type> <description>Release manager key.</description> </parameter> + <parameter> + <name>commons.nexus.repo.id</name> + <property>commons.nexus.repo.id</property> + <required>true</required> + <readonly>false</readonly> + <defaultValue>${commons.nexus.repo.id}</defaultValue> + <type>java.lang.String</type> + <description>The Nexus repository ID on https://repository.apache.org/, usually a four digit number.</description> + </parameter> </parameters> </mojo> </mojos>