File tree 3 files changed +17
-12
lines changed
3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 63
63
]
64
64
65
65
- name : Publish to GitHub Packages Apache Maven
66
- run : mvn --batch-mode deploy
66
+ run : mvn --batch-mode deploy -Pdeploy-github
67
67
env :
68
68
MAVEN_PUBLISH_URL : https://maven.pkg.github.com/${{github.repository}}
69
69
Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ pipeline {
3
3
stages {
4
4
stage(' Build' ) {
5
5
tools {
6
- jdk " jdk17"
6
+ jdk " jdk21"
7
+ maven " apache-maven-3.9.9"
7
8
}
8
9
steps {
9
- sh ' mvn -DjenkinsBuildNumber=${BUILD_NUMBER} clean package'
10
+ sh ' mvn package'
10
11
}
11
12
}
12
13
}
Original file line number Diff line number Diff line change 179
179
</plugin >
180
180
</plugins >
181
181
</build >
182
-
183
- <distributionManagement >
184
- <repository >
185
- <id >maven-publish</id >
186
- <url >${env.MAVEN_PUBLISH_URL} </url >
187
- <!-- refer to .github/workflows/maven-publish-ghpkg.yml -->
188
- </repository >
189
- </distributionManagement >
190
-
182
+
183
+ <profiles >
184
+ <profile >
185
+ <id >deploy-github</id >
186
+ <distributionManagement >
187
+ <repository >
188
+ <id >maven-publish</id >
189
+ <url >${env.MAVEN_PUBLISH_URL} </url >
190
+ <!-- refer to .github/workflows/maven-publish-ghpkg.yml -->
191
+ </repository >
192
+ </distributionManagement >
193
+ </profile >
194
+ </profiles >
191
195
</project >
You can’t perform that action at this time.
0 commit comments