Hello, I want to create a small tool which is using the nexus client. Works fine so far, But there is a problem with our ci server, because it has no possibility to reach The internet. So I have created a proxy repository in Nexus for group sonatype-public-grid, But how can I overwrite in my pom.xml that maven should use our internal Nexus instead of trying to reach https://repository.sonatype.org?
Christian Schulz
|
Hi Christian,
On Wed, Dec 4, 2013 at 10:05 AM, Schulz, Christian <[hidden email]> wrote:
What you would typically do is let your internal Nexus and the CI Maven settings.xml for the job do the heavy lifting. Also you should not normally need sonatype-public-grid group ( except in some circumstances ) to get the client libraries. These are in Maven central. So in general - do not add repositories to your pom.xml - Add some routing rules to tell your nexus where requests for com.sonatype.nexus and org.sonatype.nexus group ids need to be mapped to.
- Let your CI continue to access a group repo in your internal Nexus and change nothing in CI - it should find the correct artifacts through Nexus. -Peter
|
Free forum by Nabble | Edit this page |