Build jar from maven project on github
I couldn't find any tutorials on how to do this.
i have a project in java version 21 at
https://github.com/asdru22/JavaGame/
if i try and use github actions i get an error when it tries to update the dependency graphs.
23 Replies
⌛
This post has been reserved for your question.
Hey @asdru! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
https://github.com/asdru22/JavaGame/blob/main/.github/workflows/maven.yml
this file was a template from github, i just changed the versions to 21
Maybe use a more recent version?
- name: Submit Dependency Snapshot uses: advanced-security/maven-dependency-submission-action@v3
there's also
v4
i tried setting the version to 4 but i still get some erorrs
Error: TypeError: Cannot read properties of undefined (reading 'forEach')
Error: Error: Could not generate a snapshot of the dependencies; Cannot read properties of undefined (reading 'forEach')
Error: Failed to generate a dependency snapshot, check logs for more details, Error: Could not generate a snapshot of the dependencies; Cannot read properties of undefined (reading 'forEach')
Can you show where this happens with v4?
oh you set the wrong thing to v4
the last line is
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
is there a particular order where i need to put this? i put it under the "build with maven" part
that should be
uses: advanced-security/maven-dependency-submission-action@v4
we are both talking about changing that line: https://github.com/asdru22/JavaGame/blob/f7561fad216b2268f15c7354036c7be87d3b5b08/.github/workflows/maven.yml#L36C7-L36C106
GitHub
JavaGame/.github/workflows/maven.yml at f7561fad216b2268f15c7354036...
Onest no idea. Contribute to asdru22/JavaGame development by creating an account on GitHub.
ooh i see
let me try
i get this error with the updated .yaml
I think you might need to set permissions
GitHub
Getting 403 even if permissions:write is set · Issue #55 · advanced...
Hi, In an open-source project we are using this action as follows: https://github.com/apache/santuario-xml-security-java/blob/main/.github/workflows/dependency-submission.yml When I (who have write...