Provide an option to by pass generating a settings.xml file
See original GitHub issueWhen using self-hosted runners we provision compute with a Maven settings.xml
and currently this action will overwrite our correct settings.xml
with one that’s inoperable. It would be nice to signal to the action to not generate a settings.xml
file.
Another option might be to allow a template .github/workflow/maven/settings.xml
that can be provisioned on the runner. In the case of running with GitHub actions proper the template can use ${{ secrets.references }}
and in self-host just normal envars which Maven will interpolate into the settings file. Either way it’s secure.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
The settings.xml File in Maven - Baeldung
We can configure maven via the settings.xml file. We look at some common use cases and configuration options.
Read more >maven command line how to point to a specific settings.xml for ...
I ran mvn install with a non default settings.xml option via -s and the artifacts were posted to the default .m2 repository and...
Read more >Missing Maven settings.xml file for your Eclipse? What if you ...
Go to ~/.m2 folder · Put local eclipse related crunchify-settings.xml file and provide localRepository path: · <localRepository>/Users/<username>/ ...
Read more >Settings Reference - Maven
The settings element in the settings.xml file contains elements used to define values which configure Maven execution in various ways, like the pom.xml ......
Read more >Using a Custom Maven Settings File - Heroku Dev Center
To demonstrate this, add a settings.xml file to the root directory of your Java project and put the following code in it. <?xml...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am still at loss as to why the action deals with Maven at all. Why should installing java involve anything with Maven?
I don’t have much historical context but @konradpabjan has shared some details in https://github.com/actions/setup-java/pull/132#issuecomment-796873588