Monday, December 6, 2010

Maven 2 Repository delcaration in pom.xml

    the following repository declaration can be placed in your pom.xml file for downloading required dependencies when your application is built.
 
    <repositories>
 
         <repository>
          <id>maven2-repository.dev.java.net</id>
          <name>Java.net Repository for Maven</name>
          <url>http://download.java.net/maven/2/</url>
          <layout>default</layout>
        </repository>

      </repositories>

then it will search the given repository for downloading the the required dependencies when building your project.




hope this will help for you!

regards
Chathuranga Tennakoon
chathuranga.t@gmail.com



No comments:

Post a Comment