Skip to content

Commit

Permalink
Merge pull request #10 from holunda-io/feature/release_central
Browse files Browse the repository at this point in the history
Feature/release central
  • Loading branch information
berndruecker authored Oct 22, 2021
2 parents f2a3e0e + 4580cc4 commit 99e25f3
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Inherit the community-hub-release-parent POM inside your project like so:
<parent>
<groupId>org.camunda.community</groupId>
<artifactId>community-hub-release-parent</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<relativePath />
</parent>
```
54 changes: 54 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<!-- Pin version down to 2.5 to be able to run on JDK 17 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand Down Expand Up @@ -112,6 +118,54 @@
</plugins>
</build>
</profile>
<profile>
<id>oss-maven-central</id>
<properties>
<serverId>central</serverId>
<nexusUrl>oss.sonatype.org</nexusUrl>
<central.staging.deploy.id>${serverId}</central.staging.deploy.id>
<central.staging.deploy.url>${nexusUrl}</central.staging.deploy.url>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<executions>
<!-- the execution default-deploy (defined in camunda-release-parent) deploys into camunda nexus -->
<!-- add additional execution to deploy to maven central -->
<execution>
<id>deploy-to-maven-central</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<altStagingDirectory>${session.executionRootDirectory}/target/central-staging</altStagingDirectory>
<detectBuildFailures>true</detectBuildFailures>
<serverId>${central.staging.deploy.id}</serverId>
<nexusUrl>${central.staging.deploy.url}</nexusUrl>
<skipStaging>true</skipStaging>
<skipNexusStagingDeployMojo>${skip.central.release}</skipNexusStagingDeployMojo>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<snapshotRepository>
<id>${central.staging.deploy.id}</id>
<url>${central.staging.deploy.url}/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>${central.staging.deploy.id}</id>
<url>${central.staging.deploy.url}/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>
</profiles>

</project>

0 comments on commit 99e25f3

Please sign in to comment.