user3619128
user3619128

Reputation: 285

Maven dependencies not found. How can I find them?

I am using Eclipse Maven, and I created a Maven project. I need some JAR files. I tried to specify them as dependencies in my POM.XML file. I also searched for the dependencies in the Internet, but I wasn't able to get any Maven dependency information.

Maven dependency JARs I searched for are:

Can you please help me find these these dependency JARs?

Upvotes: 0

Views: 5830

Answers (1)

MariuszS
MariuszS

Reputation: 31557

Use site like http://search.maven.org/ or http://mvnrepository.com

<dependency>
    <groupId>org.apache.wink</groupId>
    <artifactId>wink-client</artifactId>
    <version>1.4</version>
</dependency>

All wink artifacts: http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.apache.wink%22

<dependency>
    <groupId>commons-logging</groupId>
    <artifactId>commons-logging</artifactId>
    <version>1.1.3</version>
</dependency>

Some artifact are not available, like commons-logging-api-1.1.3 in repository. Download artifact and install locally.

Sample command

mvn install:install-file -Dfile=commons-logging-api-1.1.3.jar -DgroupId=commons-logging -DartifactId=commons-logging-api -Dversion=1.1.3 -Dpackaging=jar 

Upvotes: 1

Related Questions