Cannot find Dependcies (from http://download.java.net/maven/2)

Viewed 383

I run mvn clean package -U

And i get this error message below?

 Could not resolve dependencies for project DD2480-Group-15:gs-maven:jar:0.1.0: Could not find artifact com.fasterxml.jackson.core:jackson-databind:jar:3.6 in java.net2 (http://download.java.net/maven/2) 

And i have this dependcies in my pom.xml file?

<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.11.1</version>
</dependency>

Is jackson deprecreated or?

1 Answers

I have just checked this out.

I removed that dependency from local repo and used maven to refresh the dependencies. It came without any problem. It is not the dependency the problem but the remote repo that you try to get it from.

The repository at http://download.java.net/maven/2 is deprecated, and has been replaced with https://maven.java.net/content/groups/public/

To replace your remote repository

A) If you use your downloaded version of maven then

you must find where your maven folder in your laptop exists. Then under conf/settings.xml you can configure your settings.xml

Then under mirror tag you can configure your remote repository

How to configure mirrors in maven

B) If you use a bundled version of INTELIJ for Maven then check this image of how you can configure your remote repositories enter image description here

Related