File tree Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 18
18
- name : Publish artifacts
19
19
shell : bash
20
20
run : |
21
- mvn deploy -e -B --file pom.xml --settings .github/settings.xml -DtrimStackTrace=false -Dchangelist= -Dsha1= -Drevision=$NEW_VERSION -Dfile.encoding=UTF-8 -Dmaven.wagon.http.pool=false -Dtoken=${GITHUB_TOKEN}
21
+ mvn deploy -e -B --file pom.xml --settings .github/settings.xml -DtrimStackTrace=false -Dchangelist= -Dsha1= -Drevision=$NEW_VERSION -Dfile.encoding=UTF-8 -Dmaven.wagon.http.pool=false -DdeployAtEnd=true - Dtoken=${GITHUB_TOKEN}
22
22
env :
23
23
GITHUB_TOKEN : ${{ secrets.GITHUB_ACCESS_TOKEN }}
24
24
NEW_VERSION : ${{ github.event.release.tag_name }}
Original file line number Diff line number Diff line change 422
422
</executions >
423
423
</plugin >
424
424
<plugin >
425
- <groupId >org.apache.maven.plugins</groupId >
426
- <artifactId >maven-deploy-plugin</artifactId >
425
+ <groupId >org.codehaus.mojo</groupId >
426
+ <artifactId >build-helper-maven-plugin</artifactId >
427
+ <version >3.2.0</version >
427
428
<executions >
428
429
<execution >
429
- <phase >deploy</phase >
430
+ <id >attach-artifacts</id >
431
+ <phase >package</phase >
430
432
<goals >
431
- <goal >deploy-file </goal >
433
+ <goal >attach-artifact </goal >
432
434
</goals >
433
435
<configuration >
434
- <repositoryId >github</repositoryId >
435
- <!-- må matche unpacked pom.xml fra over (disse endrer ikke path ved transform p.t.) -->
436
- <pomFile >${project.build.directory} /jakarta/META-INF/maven/${project.groupId} /${project.artifactId} /pom.xml</pomFile >
437
- <url >${project.distributionManagement.repository.url} </url >
438
- <file >${project.build.directory} /${project.artifactId} -jakarta-${project.version} -TOBEDEPLOYED.jar</file >
439
- <sources >${project.build.directory} /${project.artifactId} -jakarta-${project.version} -sources-TOBEDEPLOYED.jar</sources >
436
+ <artifacts >
437
+ <artifact >
438
+ <file >${project.build.directory} /${project.artifactId} -jakarta-${project.version} -TOBEDEPLOYED.jar</file >
439
+ <type >jar</type >
440
+ <classifier >jakarta</classifier >
441
+ </artifact >
442
+ <artifact >
443
+ <file >${project.build.directory} /${project.artifactId} -jakarta-${project.version} -sources-TOBEDEPLOYED.jar</file >
444
+ <type >jar</type >
445
+ <classifier >jakarta-sources</classifier >
446
+ </artifact >
447
+ </artifacts >
440
448
</configuration >
441
449
</execution >
442
450
</executions >
You can’t perform that action at this time.
0 commit comments