Netbeans add new Maven remote repository
java, jetty, maven, netbeans, osgi
Solution
You can edit `settings.xml` file in maven and add your repository to it. You should add something like:
<repositories>
<repository>
<id>nexus</id>
<name>Repository for JDK 1.6 builds</name>
<url>http://myrepo1:1111/contextpath/</url>
<layout>default</layout>
</repository>
<repository>
<id>nexus-major</id>
<name>Repository for JDK 1.6 builds 2</name>
<url>http://myrepo1:1111/contextpath2/</url>
<layout>default</layout>
</repository>
</repositories>
But this code should be wrapped in `profile` tag, I think. For more details you can see this. You can find settings file in `$HOME/.m2` directory in linux and same directory in Windows.
Problem
How to add new remote repo to the NetBeans 7.2 for using with the Dependency window (with repo indexing)? I found http://wiki.magnolia-cms.com/display/WIKI/setting+up+Netbeans+with+the+Magnolia+maven+repository but in 7.2 NB this window moved. In the Dependency there are no button for adding new remote Maven repos. I need to add http://repo1.maven.org/maven2/org/mortbay/jetty/jetty/7.0.0.pre5/ to the NetBeans. Sorry my bad English. Thanks, Arthur.