Skip to content
Permalink
Browse files
Parameterize Nexus repository id in URLs like
  • Loading branch information
garydgregory committed May 29, 2018
1 parent 8c1a248 commit e99b3ee8d8fd4e32bc7f5ba35d2827873b6b9563
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
@@ -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:

@@ -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>

@@ -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>

0 comments on commit e99b3ee

Please sign in to comment.