[Project] Added deployment to repo.strolch.li

This commit is contained in:
Robert von Burg 2024-01-01 13:41:40 +01:00
parent 88ffd8ddb2
commit 1358ca2440
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 61 additions and 20 deletions

81
pom.xml
View File

@ -10,7 +10,7 @@
<name>strolch-plc</name>
<description>Module build to build strolch-plc</description>
<packaging>pom</packaging>
<url>http://www.strolch.li/plc</url>
<url>https://www.strolch.li/plc</url>
<inceptionYear>2019</inceptionYear>
<issueManagement>
@ -41,7 +41,7 @@
<id>eitch</id>
<name>Robert von Burg</name>
<email>eitch@eitchnet.ch</email>
<url>http://www.eitchnet.ch</url>
<url>https://www.eitchnet.ch</url>
<roles>
<role>architect</role>
<role>developer</role>
@ -521,21 +521,6 @@
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${nexus-staging-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>oss.sonatype.org</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
</configuration>
<executions>
<execution>
<id>deploy-to-sonatype</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
<goal>release</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
@ -548,9 +533,13 @@
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>oss.sonatype.org</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<id>repo.strolch.li</id>
<url>https://repo.strolch.li/repository/maven-snapshots/</url>
</snapshotRepository>
<site>
<id>localhost</id>
<url>file://${project.basedir}/target</url>
</site>
</distributionManagement>
<profiles>
@ -596,7 +585,7 @@
</build>
</profile>
<profile>
<id>deploy</id>
<id>deploy-snapshots</id>
<build>
<plugins>
<plugin>
@ -614,6 +603,58 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<serverId>repo.strolch.li</serverId>
<nexusUrl>https://repo.strolch.li/</nexusUrl>
</configuration>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>deploy-maven</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<serverId>oss.sonatype.org</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
</configuration>
<executions>
<execution>
<id>deploy-to-sonatype</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
<goal>release</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>