FaqNexus

(Difference between revisions)
(Created page with '==Can I use the Nexus repository manager with the IDE?== Yes. Just set up Nexus as described in its documentation, including changes to your <tt>settings.xml</tt>, and the IDE s…')
Line 29: Line 29:
     </mirror>
     </mirror>
  </mirrors>
  </mirrors>
-
 
-
Alternately, you could remove all the remote repositories configured in the IDE and replace them with a single repository corresponding to <tt>content/groups/public</tt> - or whatever setup is appropriate for your usage of Nexus.
 

Revision as of 15:10, 27 July 2011

Can I use the Nexus repository manager with the IDE?

Yes. Just set up Nexus as described in its documentation, including changes to your settings.xml, and the IDE should work correctly with it for purposes of resolving artifacts.

One point to note is that as of NB 7.0 the IDE will honor your mirror settings for downloading remote repository indices, but this cannot work for Nexus groups if you have individual repositories configured in the IDE. Since the IDE normally ships with three remote repositories enabled, and you would expect indices in e.g. Maven Repository Browser to reflect only artifacts actually hosted on those public repositories, you should configure your mirrors to go directly to Nexus's proxy repository rather than the public group; NetBeans will refuse to download an index from a * mirror.

Assuming you have configured a repository in Nexus with the ID netbeans pointing to http://bits.netbeans.org/maven2/ then it should suffice to list:

<mirrors>
    <mirror>
        <id>central</id>
        <mirrorOf>central</mirrorOf>
        <url>.../nexus/content/repositories/central/</url>
    </mirror>
    <mirror>
        <id>java.net</id>
        <mirrorOf>java.net,java.net2</mirrorOf>
        <url>.../nexus/content/repositories/java.net-m2/</url>
    </mirror>
    <mirror>
        <id>netbeans</id>
        <mirrorOf>netbeans</mirrorOf>
        <url>.../nexus/content/repositories/netbeans/</url>
    </mirror>
    <mirror>
        <id>nexus</id>
        <mirrorOf>*</mirrorOf>
        <url>.../nexus/content/groups/public/</url>
    </mirror>
</mirrors>
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo