Skip to content

Commit

Permalink
enh(release): added ability to deploy to different repositories as sp…
Browse files Browse the repository at this point in the history
…ecified on the command line
  • Loading branch information
lprimak committed Oct 31, 2023
1 parent 0e395de commit 1289ff0
Showing 1 changed file with 31 additions and 12 deletions.
43 changes: 31 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@
</distributionManagement>

<properties>

<shiro.previousVersion>1.7.1</shiro.previousVersion>
<shiro.previousVersion>1.13.0</shiro.previousVersion>
<!-- Replaced by the build number plugin at build time: -->
<buildNumber>${user.name}-${maven.build.timestamp}</buildNumber>
<project.build.outputTimestamp>2022-03-22T23:08:15Z</project.build.outputTimestamp>
Expand All @@ -77,6 +76,7 @@
<!--suppress CheckTagEmptyBody -->
<failsafe.argLine></failsafe.argLine>
<nexus.deploy.skip>false</nexus.deploy.skip>
<nexus-staging-profile>nexus-staging</nexus-staging-profile>
<jacocoAgent/>
<!-- non-dependency-based properties: -->
<shiro.osgi.importRange>[2, 3)</shiro.osgi.importRange>
Expand Down Expand Up @@ -783,23 +783,18 @@
<pushChanges>false</pushChanges>
<localCheckout>true</localCheckout>
<autoVersionSubmodules>true</autoVersionSubmodules>
<!-- This configuration copied from apache:apache:7 parent pom -->
<useReleaseProfile>false</useReleaseProfile>
<preparationGoals>validate</preparationGoals>
<preparationProfiles>skip-checkstyle</preparationProfiles>
<goals>deploy</goals>
<arguments>-Pdocs,apache-release,skip-checkstyle</arguments>
<releaseProfiles>docs,apache-release,${nexus-staging-profile}</releaseProfiles>
<mavenExecutorId>forked-path</mavenExecutorId>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<nexusUrl>https://repository.apache.org</nexusUrl>
<serverId>apache.releases.https</serverId>
<skipNexusStagingDeployMojo>${nexus.deploy.skip}</skipNexusStagingDeployMojo>
<deployAtEnd>true</deployAtEnd>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -1754,6 +1749,24 @@
</plugins>
</build>
</profile>
<profile>
<id>nexus-staging</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<nexusUrl>https://repository.apache.org</nexusUrl>
<serverId>apache.releases.https</serverId>
<skipNexusStagingDeployMojo>${nexus.deploy.skip}</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- NOTE: this plugin config will return false positives, usage will require
human interpretation (and should NOT be used to fail builds)
Expand Down Expand Up @@ -1855,6 +1868,9 @@
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
Expand All @@ -1864,6 +1880,9 @@
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</project>

0 comments on commit 1289ff0

Please sign in to comment.