implement deploy to maven repo
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
10
.drone.yml
10
.drone.yml
@@ -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
17
pom.xml
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user