dependencies - how to configure local and remote repository in settings.xml for maven -


i have own organization internal repository use:

    <repository>         <id>archiva.default</id>         <url>http://my.org.repo:8000/archiva/repository/internal/</url>     </repository> 

i needed remote repository latest version of maven-resource-plugin, maven-compile-plugin, jboss etc.

can please suggest me how configure settings.xml maven downloads dependencies available in internal repository, if dependencies not available in internal repository remote repository.

found solution http://archiva.apache.org/docs/1.0.2/userguide/using-repository.html:

<profiles> <profile>   <id>repository proxy</id>   <activation>     <activebydefault>true</activebydefault>   </activation>   <!-- ******************************************************* -->   <!-- repositories jar artifacts -->   <!-- ******************************************************* -->   <repositories>     <repository>       ...     </repository>     ...      </repositories>   <!-- ******************************************************* -->   <!-- repositories maven plugins -->   <!-- ******************************************************* -->   <pluginrepositories>     <pluginrepository>       ...     </pluginrepository>     ...      </pluginrepositories> </profile> ... 


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -