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.
No description
23 Replies
JavaBot
JavaBot5mo ago
This post has been reserved for your question.
Hey @asdru! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
asdru
asdru5mo ago
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
szatkus
szatkus5mo ago
Maybe use a more recent version?
- name: Submit Dependency Snapshot uses: advanced-security/maven-dependency-submission-action@v3
dan1st
dan1st5mo ago
there's also v4
asdru
asdru5mo ago
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')
dan1st
dan1st5mo ago
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
asdru
asdru5mo ago
is there a particular order where i need to put this? i put it under the "build with maven" part
dan1st
dan1st5mo ago
that should be uses: advanced-security/maven-dependency-submission-action@v4
dan1st
dan1st5mo ago
GitHub
JavaGame/.github/workflows/maven.yml at f7561fad216b2268f15c7354036...
Onest no idea. Contribute to asdru22/JavaGame development by creating an account on GitHub.
JavaBot
JavaBot5mo ago
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
asdru
asdru5mo ago
ooh i see let me try
asdru
asdru5mo ago
i get this error with the updated .yaml
No description
dan1st
dan1st5mo ago
I think you might need to set permissions
Want results from more Discord servers?
Add your server