Wednesday, April 2, 2014

Setup Maven to access non local repository

Removed
I was using Maven in my project, and I needed to add Spring Integration dependency but this latest have its own repository.



But Maven was complaining as it is not considering the given repository and it didn't find the library in the Local repository.
So thanks to a friend (AbdullaF), the solution was to  make some change in the maven setting file.
So just need to go to the local repository (for me it is "C:\.m2"). Then edit the setting.xml.

search for mirrorOf and change it from * to central. Like this Maven will consider the repositories that you specify in the pom.xml.


No comments :

Post a Comment

Articles les plus consultés