Skip to content
Advertisement

Maven ignores local repository

I’m trying to use jackson at a json project. And Maven is ignoring my local repository (where I have the library already set, from a previous project) and downloading from codehaus repo.

The catch is that my workplace has blocked access to external repos, so I must use local repository for this. How do I force Maven to look first at local and use the library there?

Thanks in advance

Advertisement

Answer

Please set the Local Repository Path in eclipse that maps to your local repo path..

Go to Windows->Preferences->Maven->User Settings and change the settings.xml and your local repository path..

If these both are correctly located then it should check to the local repo first

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement