apache / apache/maven

[MNG-5438] cli parameter to use a custom path settings-security.xml

Open
#6,494 7 comments 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[Sarah Haselbauer](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=saheba)** opened **[MNG-5438](https://issues.apache.org/jira/browse/MNG-5438?redirect=false)** and commented

added -ssec as cli param, so that you have the same flexibility to place your settings-security.xml as you have to point to a custom settings.xml file

mvn -s /path/to/my/custom/settings.xml -ssec /path/to/my/custom/settings-security.xml

I attached to patches: one that can be run on the maven-3.0.4 tag and one that can be run on trunk (latest code state of today).
I also attached a maven-3.0.4-bin.zip (linux) so you can quickly try out the feature and test it yourself.

if you like the idea, I would welcome to have this feature merged into one of the next releases. I need it to write a puppet-maven module that allows to download artifacts from maven repositories with encrypted passwords in the puppet recipe.

---

**Affects:** 3.0.4, 3.0.5

**Attachments:**
- [apache-maven-3.0.4-ssec-bin.tar.gz](https://issues.apache.org/jira/secure/attachment/12713275/apache-maven-3.0.4-ssec-bin.tar.gz) (_4.65 MB_)
- [apache-maven-3.0.4-ssec-bin.zip](https://issues.apache.org/jira/secure/attachment/12713228/apache-maven-3.0.4-ssec-bin.zip) (_4.67 MB_)
- [maven-3.0.4-0001-added-ssec-as-cli-param-so-that-you-have-the-same-fl.patch](https://issues.apache.org/jira/secure/attachment/12713384/maven-3.0.4-0001-added-ssec-as-cli-param-so-that-you-have-the-same-fl.patch) (_3.27 kB_)
- [maven-latest-0001-added-ssec-as-cli-param-so-that-you-have-the-same-fl.patch](https://issues.apache.org/jira/secure/attachment/12713406/maven-latest-0001-added-ssec-as-cli-param-so-that-you-have-the-same-fl.patch) (_3.13 kB_)
- [MNG-5438-maven-embedder.patch](https://issues.apache.org/jira/secure/attachment/12853809/MNG-5438-maven-embedder.patch) (_1.34 kB_)

**Issue Links:**
- [MNG-6089](https://issues.apache.org/jira/browse/MNG-6089) Define a command line option to define settings-security.xml as well as settings.xml as well

- [MNG-4853](https://issues.apache.org/jira/browse/MNG-4853) Make location of settings-security.xml configurable

5 votes, 9 watchers

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.