Skip to content

Commit

Permalink
Inject distribution management variables...
Browse files Browse the repository at this point in the history
  • Loading branch information
bargenilesh committed Apr 18, 2017
1 parent c2cc3e3 commit 206ce00
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ http://www.w3.org/2001/XMLSchema-instance">
<swaggerUrl>${swaggerHost}/api</swaggerUrl>
<swaggerServicePath>swagger/swaggerjson/swagger.json</swaggerServicePath>
<swaggerServiceUrl>/${swaggerServicePath}</swaggerServiceUrl>

<dmNexusUrl>https://oss.sonatype.org/</dmNexusUrl>
<dmSnapshotRepository>https://oss.sonatype.org/content/repositories/snapshots</dmSnapshotRepository>
<dmRepository>https://oss.sonatype.org/service/local/staging/deploy/maven2/</dmRepository>
</properties>

<profiles>
Expand Down Expand Up @@ -390,11 +394,11 @@ http://www.w3.org/2001/XMLSchema-instance">
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>${dmSnapshotRepository}</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<url>${dmRepository}</url>
</repository>
</distributionManagement>
<build>
Expand Down Expand Up @@ -432,7 +436,7 @@ http://www.w3.org/2001/XMLSchema-instance">
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<nexusUrl>${dmNexusUrl}</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
Expand Down

0 comments on commit 206ce00

Please sign in to comment.