Skip to content

Commit 2563873

Browse files
committed
fix: failing dependency resolution in CI
1 parent e983720 commit 2563873

2 files changed

Lines changed: 17 additions & 13 deletions

File tree

‎.github/workflows/maven.yml‎

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
91
name: Java CI with Maven
102

113
on:
@@ -14,11 +6,12 @@ on:
146
pull_request:
157
branches: [ "main" ]
168

9+
permissions:
10+
contents: write
11+
1712
jobs:
1813
build:
19-
2014
runs-on: ubuntu-latest
21-
2215
steps:
2316
- uses: actions/checkout@v4
2417
- name: Set up JDK 25
@@ -29,7 +22,9 @@ jobs:
2922
cache: maven
3023
- name: Build with Maven
3124
run: mvn -B package --file pom.xml
32-
33-
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
3425
- name: Update dependency graph
35-
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
26+
uses: advanced-security/maven-dependency-submission-action@v5
27+
continue-on-error: true
28+
with:
29+
directory: .
30+
maven-args: "-DmergeClassifiers=true"

‎pom.xml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,15 @@
112112
</dependencies>
113113

114114
<build>
115+
<pluginManagement>
116+
<plugins>
117+
<plugin>
118+
<groupId>org.apache.maven.plugins</groupId>
119+
<artifactId>maven-dependency-plugin</artifactId>
120+
<version>3.11.0</version>
121+
</plugin>
122+
</plugins>
123+
</pluginManagement>
115124
<plugins>
116125
<plugin>
117126
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)