-
Notifications
You must be signed in to change notification settings - Fork 5
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
Credentials for mirror #4
Comments
project |
I think it's not a good idea to ignore any setting. There are some use cases where it makes total sense. |
the developer will still have to setup the environment once to bootstrap projects in your org, then it should be better done in the user settings like the standard maven way. in my similar case, the project repo holds a mirror url with a unique server.id in project level settings.xml from the org, and the org should distribute the credentials for each developer or team to access the mirror. then the credentials are owned by the user, and should be merged into there own user level settings.xml. In ci environment, the org provides a common user level settings.xml, reading the credentials from environment variables which are injected into ci jobs by the ci platforms (gitlab/gitlab/traviis-ci, etc.) via secret ci variables. |
Yes, exactly! You need manual tasks to do so. Some projects even checkin the settings.xml in the repo, with the part to copy and paste to the users settings.xml. But why! Why we need this manual task, where there is the authentication known in the company anyway. It should only deny access from the outer world. |
I agree to remove manual tasks in the building process amap. this ext does try to eliminate some of manual jobs without introducing new troubles. |
Hi,
I use mirrors and credentials in settings.xml
https://maven.apache.org/settings.html#mirrors
Credentials doesn't seem to work for a mirror.
Best regards
The text was updated successfully, but these errors were encountered: