implement deploy to maven repo
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-03-08 22:21:39 +01:00
parent 93eef9b53f
commit d57d021749
2 changed files with 25 additions and 2 deletions

View File

@@ -29,3 +29,13 @@ steps:
from_secret: sonar_instance_url
SONAR_LOGIN_KEY:
from_secret: sonar_login_key
- name: deploy
image: maven:3-eclipse-temurin-21
commands:
- mvn deploy --no-transfer-progress -B -V
environment:
MAVEN_DEPLOY_USERNAME:
from_secret: maven_deploy_username
MAVEN_DEPLOY_PASSWORD:
from_secret: maven_deploy_password

17
pom.xml
View File

@@ -34,6 +34,19 @@
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>nexus-releases</id>
<name>Nexus Releases Repository</name>
<url>https://nexus.beatrice.wtf/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<name>Nexus Snapshots Repository</name>
<url>https://nexus.beatrice.wtf/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
<build>
<plugins>
<plugin>
@@ -73,8 +86,8 @@
</repository>
<repository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<id>sonatype-nexus-releases</id>
<url>https://oss.sonatype.org/content/repositories/releases</url>
</repository>
</repositories>