diff --git a/.github/workflows/maven-publish-ghpkg.yml b/.github/workflows/maven-publish-ghpkg.yml
index ba401b6..f6c99ff 100644
--- a/.github/workflows/maven-publish-ghpkg.yml
+++ b/.github/workflows/maven-publish-ghpkg.yml
@@ -37,7 +37,7 @@ jobs:
server-id: 'github-package'
- name: Publish to GitHub Packages Apache Maven
- run: mvn --batch-mode deploy
+ run: mvn deploy --batch-mode -Pdeploy-github
env:
GITHUB_MAVEN_URL: https://maven.pkg.github.com/${{github.repository}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
diff --git a/Jenkinsfile b/Jenkinsfile
index c685590..37f8d45 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -3,17 +3,18 @@ pipeline {
stages {
stage('Build') {
tools {
- jdk "jdk17"
+ jdk "jdk21"
+ maven "apache-maven-3.9.9"
}
steps {
- sh 'mvn -DmavenLocalDistDir=${MAVEN_DIR} deploy'
+ sh 'mvn deploy --batch-mode -Pdeploy-local'
}
}
}
post {
always {
- archiveArtifacts artifacts: 'target/*.jar', fingerprint: true
+ archiveArtifacts artifacts: 'target/ecore-*.jar', fingerprint: true
cleanWs()
}
}
diff --git a/pom.xml b/pom.xml
index 30ccee3..a1a2737 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,6 +13,8 @@
21
UTF-8
UTF-8
+ ${env.GITHUB_MAVEN_URL}
+ ${env.MAVEN_DIR}
@@ -116,12 +118,25 @@
-
-
-
- github-package
- ${env.GITHUB_MAVEN_URL}
-
-
-
+
+
+ deploy-github
+
+
+ github-package
+ ${github.package.url}
+
+
+
+
+
+ deploy-local
+
+
+ laven-local
+ file://${maven.local.dir}
+
+
+
+