Commit 6abcba50 authored by Danijel Dragicevic's avatar Danijel Dragicevic

Introduced multiple deployment profiles. One to deploy to the OSSRH repository...

Introduced multiple deployment profiles. One to deploy to the OSSRH repository and one to deploy to the codecentric repository.
parent af49bc1d
Pipeline #123001 failed with stages
in 4 minutes and 50 seconds
......@@ -22,6 +22,6 @@ test:
deploy:
stage: deploy
script:
- mvn $MAVEN_CLI_OPTS deploy
- mvn $MAVEN_CLI_OPTS deploy -P deploy-to-codecentric
only:
- master
\ No newline at end of file
......@@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.codecentric.mule.modules</groupId>
<artifactId>assert-object-equals-module</artifactId>
<version>1.1.0</version>
<version>1.1.1-SNAPSHOT</version>
<packaging>mule-extension</packaging>
<name>Assert Object Equals Extension</name>
......@@ -39,16 +39,31 @@
<tag>assert-object-equals-module-1.1.3</tag>
</scm>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<profiles>
<profile>
<id>deploy-to-ossrh</id>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>deploy-to-codecentric</id>
<distributionManagement>
<repository>
<id>central</id>
<name>artifactory.codecentric.de-releases</name>
<url>${env.MAVEN_REPO_URL}/public</url>
</repository>
</distributionManagement>
</profile>
</profiles>
<build>
<plugins>
......@@ -138,12 +153,4 @@
<layout>default</layout>
</repository>
</repositories>
<!-- <distributionManagement>-->
<!-- <repository>-->
<!-- <id>central</id>-->
<!-- <name>artifactory.codecentric.de-releases</name>-->
<!-- <url>${env.MAVEN_REPO_URL}/public</url>-->
<!-- </repository>-->
<!-- </distributionManagement>-->
</project>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment