File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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-
91name : Java CI with Maven
102
113on :
146 pull_request :
157 branches : [ "main" ]
168
9+ permissions :
10+ contents : write
11+
1712jobs :
1813 build :
19-
2014 runs-on : ubuntu-latest
21-
2215 steps :
2316 - uses : actions/checkout@v4
2417 - name : Set up JDK 25
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"
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments