Questions tagged [maven-dependency]

A dependency in Maven is a required external library the project depends upon to build and run correctly.

A dependency in Maven is a required external library the project depends upon to build and run correctly. In Maven, dependencies are declared via GAV coordinates (Group id, Artifact id, Version), they could also optionally have a scope, a classifier, a type.

An example of dependency:

<dependency>
   <groupId>junit</groupId>
   <artifactId>junit</artifactId>
   <version>4.11</version>
   <scope>test</scope>
</dependency>

Check the official Maven quick-start guide on how to use external dependencies for a first look at it.

More Info

224 questions
0
votes
1 answer

How to read the maven dependecy of chrome browser which is a .jar file into my java file

I'm trying to run my simple Selenium code to open http://google.com on my Chrome browser. I am using Selenium 3.0. I have a maven dependency in my POM.xml for chromedriver which is as follows:
0
votes
0 answers

Getting Artifact missing error while Adding Onedrive Dependency in maven

I am getting an missing dependency error with this dependency in maven: org.nuxeo.onedrive onedrive-java-client 1.0 I checked that the artifact is in…
Rhushi
  • 1
  • 1
0
votes
1 answer

How to get easy rules .jar file?

I've developed a java web application and now I want to integrate a rule engine as part of this application. I checked Easy Rules and as mentioned in their website it's just a jar file that I need to add to the project but then in order to get the…
Maryam
  • 1,043
  • 1
  • 12
  • 16
0
votes
1 answer

Understanding Maven Dependency tree output

I am trying to compile a Spring application in which the ApplicationConfig file has @EnableAspectJAutoProxy anotation I am facing this error when trying to run the project: Failed to instantiate [org.springframework.aop.aspectj.annotation. …
Siavosh
  • 2,314
  • 4
  • 26
  • 50
0
votes
0 answers

Maven is not picking particular dependency and java compilation is failing. com.maxmind.geoip.Loocation and com.maxmind.geoip.LookupService only

I am not able to understand why maven is not picking up the dependency. It is downloading that dependency in the repository as below, Other source are getting compiled only related to this class not compiling, that is depend on
Gautam
  • 3,707
  • 5
  • 36
  • 57
0
votes
1 answer

Maven dependency order check

I need to check the Maven dependency injection order automatically. In a Maven module I take two dependencies with the same classes name and package. One dependency should always have priority on the other one, this mean it have to be declared first…
Rumoch
  • 61
  • 1
  • 5
0
votes
0 answers

How to get source code from a maven dependency jar

I'm trying to download the source code from a .jar file. I know about mvn dependency:sources but I don't have access to the jar's pom.xml file to run that command. What I am trying to accomplish: I have two separate projects (Project_1 and…
0
votes
1 answer

Maven Settings.xml Add Multiple Servers With Priority

My work has its own maven server that it uses. Unfortunately, when I try to add a dependency to http://mvnrepository.com/artifact/commons-dbutils/commons-dbutils/1.6 it is not being found. My question is how do I modify my settings.xml to allow for…
James Oravec
  • 19,579
  • 27
  • 94
  • 160
-1
votes
1 answer

Maven uses dependencies from workspace not .m2 folder

So I have the following project structure Sporium is a working set with the maven multimodule spigot-parent my problem now is when I define this pom.xml in my project it will not use the created dependency in the .m2 folder but instead it will use…
Xeno Pyax
  • 3
  • 4
-1
votes
2 answers

What is use of selenium-chrome-driver dependency, without chrome binary file?

When this(selenium-chrome-driver) dependency can be use ? org.seleniumhq.selenium
-1
votes
1 answer

Is bintray repository available for free?

I searched for: com.oracle ojdbc6 11.2.0.2.0 And found it at this site. It provides 2 links, one to mvnsearch and second for bintray. mvnsearch does not…
Cherry
  • 31,309
  • 66
  • 224
  • 364
-1
votes
2 answers

How to fix com.oracle:ojdbc14:jar:10.2.0.1.0

How can I solve the Maven error ? Missing artifact com.oracle:ojdbc14:jar:10.2.0.1.0 I tried to add another dependency hibernate-entitymanager but it does not work.
-2
votes
1 answer

NoSuchMethod org.slf4j.spi.LocationAwareLogger error

I'm facing with NoSuchMethod org.slf4j.spi.LocationAwareLogger erro in my code after typing mvn clean test command through cmd. Probably it's related to maven dependency but i couldn't figure out where i should exactly arrange in pom xml. …
santino87
  • 53
  • 6
1 2 3
14
15