Skip to content

Commit 60e3cc9

Browse files
committed
Fix github settings.
1 parent 008decc commit 60e3cc9

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/maven-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
with:
2222
java-version: '17'
2323
distribution: 'adopt'
24-
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
24+
server-id: github-globsframework # Value of the distributionManagement/repository/id field of the pom.xml
2525
settings-path: ${{ github.workspace }} # location for the settings.xml file
2626

2727
- name: Build with Maven
28-
run: mvn -B package --file pom.xml
28+
run: mvn -B package

.github/workflows/maven-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
with:
2323
java-version: '17'
2424
distribution: 'adopt'
25-
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
25+
server-id: github-globsframework # Value of the distributionManagement/repository/id field of the pom.xml
2626
settings-path: ${{ github.workspace }} # location for the settings.xml file
2727

2828
- name: Build with Maven
29-
run: mvn -B package --file pom.xml
29+
run: mvn -B package
3030

3131
- name: Publish to GitHub Packages Apache Maven
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
34+
run: mvn deploy

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
<dependency>
1212
<groupId>junit</groupId>
1313
<artifactId>junit</artifactId>
14-
<version>4.12</version>
14+
<version>4.13.2</version>
1515
<scope>test</scope>
1616
</dependency>
1717
</dependencies>
1818

1919
<distributionManagement>
2020
<repository>
21-
<id>github</id>
21+
<id>github-globsframework</id>
2222
<name>GitHub Globsframework Packages</name>
2323
<url>https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}</url>
2424
</repository>

settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
33
<servers>
44
<server>
5-
<id>github</id>
5+
<id>github-globsframework</id>
66
<username>${env.GITHUB_ACTOR}</username>
77
<password>${env.GITHUB_TOKEN}</password>
88
</server>

0 commit comments

Comments
 (0)