Maven downloads dependecy, but does not add them / "cannot find symbol"

I am getting started with Maven and Spring and therefore

started the Spring:Getting Started with Maven tutorial.

I am stuck at adding the joda-library.

Unfortunately, i get the cannot find symbol error message.

Things I already tried:

- Invalidating Caches

- Reimporting all Maven Projcets via IntelliJ

Changing the pom.xml to add everything that might could have been missing, here the updated pom.xml file:




xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

4.0.0

org.springframework

gs-maven

jar

0.1.0







joda-time

joda-time

2.9.2











org.apache.maven.plugins

maven-compiler-plugin

3.7.0



1.9

1.9

1.9

1.9

UTF-8







maven-assembly-plugin





package



single











jar-with-dependencies













Here is the error message I get after a mvn clean install:

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal...

Read More »

By: StackOverFlow - Wednesday, 14 March

Related Posts