I compiled a jar file in one project so it can be consumed in the 2nd one. I can see the jar file in .m2 folder. But in the 2nd project it complains about artifact not found. I guess I have to force maven to update indices/cache something but don't know what exactly. Any tip, thanks.
Update: thanks for all good suggestions. Turns out that the maven plugin (of IntelliJ) in the second project doesn't update its index. I use command line it compiled ok.
In Maven, you can use Apache Maven Dependency Plugin, goal dependency:purge-local-repository to remove the project dependencies from the local repository, and re-download it again.
Update Maven settings in Eclipse. Right-click your project and select Maven Update Project and update your project.
try using -U
(aka --update-snapshots
) when you run maven
And make sure the dependency definition is correct
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With