Broken class path with Intellij idea on maven dependency

I use Intellij IDEA 12.1.6, almost everyone in my company uses Eclipse and does not notice my problem. We have a local repository of links where we deploy artifacts, but some of them are systematically created with invalid maven-metadata.xml (the last timestamp of the snapshot and build number do not match the effective name of the artifact on the repo), and intellij ends up saying to me these libraries violated the class path.

Is there a way to get intellij to connect maven banks in my local repository without worrying about additional metadata data? For example, an eclipse will hook a jar on its way to the class using a version that does not include this data (in my m2 registry I see 2 jars loaded, one with full data and the other without them) for example.

Library-0.0.6-SNAPSHOT.jar
library-0.0.6-SNAPSHOT-20131028.111135-10.jar

Thank you for your help.

+6
source share
1 answer

If importing the eclipse project did not work . You should be able to customize the contents of the library . The Configure library dialog step should allow you to point the library to another location.

+1
source

Source: https://habr.com/ru/post/957025/


All Articles