At times, the repository used in the pom.xml may not have the latest version of jar you are looking for. In such case, you will need to add a repository which has the required version of the particulaar dependency. You can do it in the following way:
Add the following lines between the <repositories> </repositories> tags:
<repository>
<id>org.spring.maven.snapshot</id>
<name>Spring Maven Snapshot Repository</name>
<url>http://repo1.maven.org/maven2/</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
Change the url and id according to your requirement. The id can be anything but should be a unique one.
Thanks,
Shoeb
No comments:
Post a Comment