broken classpath with Intellij Idea on maven dependency
Asked Answered
P

1

6

i'm using Intellij IDEA 12.1.6, almost everyone in my company use Eclipse and dont notice my problem. We have a local nexus repository where we deploy artifacts, but some of them are systematically created with an invalid maven-metadata.xml (the latest snapshot timestamp and build number does not match the effective artifact name on repo) and intellij ends up telling me those libraries have broken classpath.

Is there a way to force intellij on hooking the maven jars on my local repository without worrying about those metadata additional information? Eg eclipse hook the jar in his classpath taking the version which does not include those data (in my m2 repo dir i see both 2 jars downloaded, the one with full data and the other one without them) eg.

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

Thank you for your help.

Pellmell answered 30/10, 2013 at 11:9 Comment(2)
The best fix would be to get the metadata fixed. There is a scheduled task in Nexus that can do that.Cystoscope
if i could do it, there would be no reason to ask this question. Thank you anyway :)Pellmell
C
1

If Importing the eclipse project did not work. You should be able to Configure the library contents . The step for Configure Library Dialog should allow you to point the library to a different location.

Childe answered 15/3, 2014 at 5:43 Comment(1)
thank you for the answer, anyway the last intellij update did solved the issue without manually touching libraries configuration.Pellmell

© 2022 - 2024 — McMap. All rights reserved.