test maven-settings-action
This commit is contained in:
17
.github/workflows/build-and-publish-develop.yml
vendored
17
.github/workflows/build-and-publish-develop.yml
vendored
@@ -25,6 +25,23 @@ jobs:
|
||||
with:
|
||||
distribution: zulu
|
||||
java-version: 17
|
||||
- uses: s4u/maven-settings-action@v3.0.0
|
||||
with:
|
||||
properties: '[
|
||||
{"altSnapshotDeploymentRepository", "nexus-snapshot::${env.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL}"},
|
||||
{"altReleaseDeploymentRepository", "nexus-release::${env.RELEASE_DEPLOYMENT_REPOSITORY_URL}"}
|
||||
]'
|
||||
servers: |
|
||||
[{
|
||||
"id": "nexus-snapshot",
|
||||
"username": ${env.NEXUS_USERNAME}
|
||||
"password": ${env.NEXUS_PASSWORD}
|
||||
},
|
||||
{
|
||||
"id": "nexus-release",
|
||||
"username": ${env.NEXUS_USERNAME}
|
||||
"password": ${env.NEXUS_PASSWORD}
|
||||
}]
|
||||
- name: Maven Publish
|
||||
run: |
|
||||
mvn -B deploy
|
||||
|
||||
23
pom.xml
23
pom.xml
@@ -37,29 +37,6 @@
|
||||
<url>https://github.com/3dwardch3ng/ec-config-server/issues</url>
|
||||
</issueManagement>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>nexus-public</id>
|
||||
<url>https://nexus.cluster.edward.sydney/repository/maven-public/</url>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>maven-release</id>
|
||||
<name>Nexus Release Repository</name>
|
||||
<url>https://nexus.cluster.edward.sydney/repository/maven-releases/</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>maven-snapshots</id>
|
||||
<name>Nexus Snapshots Repository</name>
|
||||
<url>https://nexus.cluster.edward.sydney/repository/maven-snapshots/</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
|
||||
Reference in New Issue
Block a user