nutsiepully
nutsiepully

Reputation: 1106

maven not picking dependencies from my local repository

I am working on a module (let's say A, version 1) that is available in my maven global repository. I have now modified the code inside this module and bumped the version up to version 2. Now, the code for this module has not been committed and the global repository doesn't now about this new version. However, I have built the project and version 2 is available in my local .m2 folders.

I am now working on a new module (let's say B) that depends on module A, version 2. maven is not picking up this dependency on module A. And my code is not linking to classes in module A.

Any help would be much appreciated.

EDIT: I have performed a clean install of module A, and I can see the classes in the local repository.

Best, Pulkit

Upvotes: 3

Views: 11060

Answers (1)

user1629683
user1629683

Reputation:

Well, if you are using an IDE, which I presume you do (you are using maven), you could try to update the project configuration and update the dependencies. Also make sure you refer to the correct versions of your modules in your pom.xml file(s) . This is all presuming you have performed a clean install of your 'A version 2', of course. Good luck!

Upvotes: 3

Related Questions