Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No documentation on how to configure custom settings.xml for Aether #67

Open
shelan opened this issue Oct 9, 2015 · 3 comments
Open

Comments

@shelan
Copy link

shelan commented Oct 9, 2015

If someone needs to use a custom settings.xml there is no documentation available on how to do it. According to the code in https://github.com/jcabi/jcabi-aether/blob/master/src/main/java/com/jcabi/aether/Aether.java

Method settings() suggest several ways. This is important as some operating systems have different locations to store user's settings.xml. Further to write integration tests a developer may need to use custom settings.xml

eg: System.getProperty("org.apache.maven.user-settings") is one such property we can override.

@dmarkov
Copy link

dmarkov commented Oct 13, 2015

@yegor256 please dispatch this issue

@yegor256
Copy link
Member

@shelan I'm not sure I understand. First, where this "method settings()" is coming from? What class? Second, how settings.xml are related to the class Aether?

@shelan
Copy link
Author

shelan commented Oct 22, 2015

@yegor256 settings() methods is here.
https://github.com/jcabi/jcabi-aether/blob/master/src/main/java/com/jcabi/aether/Aether.java#L374

It is being used to get the proxy configuration/ other configurations to populate repository objects.

https://github.com/jcabi/jcabi-aether/blob/master/src/main/java/com/jcabi/aether/Aether.java#L218

https://github.com/jcabi/jcabi-aether/blob/master/src/main/java/com/jcabi/aether/Aether.java#L196

Therefore if someone is having settings.xml for maven configuration in a different location there will be problems. Further if someone wants to use a custom settings.xml temporary the settings() methods location hierarchy will be helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants