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

Maven: Use mirrors #14

Open
schnatterer opened this issue Jul 17, 2018 · 0 comments
Open

Maven: Use mirrors #14

schnatterer opened this issue Jul 17, 2018 · 0 comments

Comments

@schnatterer
Copy link
Member

Via settings.xml we can setup mirrors for Maven Repos, e.g. central.

<mirrors>
  <mirror>
    <id>${url}</id>
    <name>${url} Central Mirror</name>
    <url>${urll}/nexus/content/groups/public</url>
    <mirrorOf>central</mirrorOf>
  </mirror>
</mirrors>

ces-build-lib could help us doing that.

We already use writing settings.xml for deployment. So we have to create a generic mechanism for settings.xml e.g. using a builder. We also have to assert that the settings.xml is written at least once before mvn / call() is called and that maven uses the settings.xml (-s parameter).

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

1 participant