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
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
Intellij IDEA - File - Invalidate Caches / Restart..
This worked for me.
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