Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid classes root from intellij for an existing jar in maven local repo

As shown in following screenshot a maven library is marked as red - even though it does exist in local maven repo

/Users/steve/.m2/repository/com/typesafe/akka/akka-remote_2.10/2.2.3/akka-remote_2.10-2.2.3.jar

enter image description here

But that file does exist on the local filesystem: Here it is on the local file system

21:43:12/scaladem:35 $ls -l /Users/steve/.m2/repository/com/typesafe/akka/akka-remote_2.10/2.2.3/akka-remote_2.10-2.2.3.jar
-rw-r--r--  1 steve  staff  1277288 Feb 21 21:42 /Users/steve/.m2/repository/com/typesafe/akka/akka-remote_2.10/2.2.3/akka-remote_2.10-2.2.3.jar

Here are maven entries in pom.xml

    <dependency>
        <groupId>com.typesafe.akka</groupId>
        <artifactId>akka-actor_2.10</artifactId>
        <version>2.2.3</version>
    </dependency>
    <dependency>
        <groupId>com.typesafe.akka</groupId>
        <artifactId>akka-remote_2.10</artifactId>
        <version>2.2.3</version>
    </dependency>

Note also:

mvn package

works fine from the command line

like image 601
WestCoastProjects Avatar asked Feb 22 '14 06:02

WestCoastProjects


1 Answers

Intellij IDEA - File - Invalidate Caches / Restart..

This worked for me.

like image 126
YON Avatar answered Sep 18 '22 03:09

YON