Reputation: 161
I added the following dependencies and repository to my pom.xml but still can't get the jars downloaded to the maven repo.
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.2.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.2.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.2.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
<version>2.2.2</version>
</dependency>
<repository>
<id>opencast-public</id>
<url>http://repository.opencastproject.org/nexus/content/repositories/public/</url>
</repository>
I executed maven clean and install after I updated the pom file but still can't get the jars. I was successful getting other dependencies downloaded to my maven repo. Is it because of the repository?
Upvotes: 1
Views: 1483
Reputation: 240870
Your repository tag needs to be placed in this fashion and you need this particular repository to get the jackson jars downl
<project>
<modelVersion>4.0.0</modelVersion>
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>http://repo2.maven.org/maven2/</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
.
.
.
</project>
You can verify avaibility of jar at http://repo2.maven.org/maven2/com/fasterxml/jackson/dataformat/jackson-dataformat-xml/2.2.2/
Upvotes: 1