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
2
votes
1 answer

What is the repository order that is considers by Maven when it tries to download plugins?

I don't find the documentation where Maven says how it orders the declared repositories. Consider the following locations one could configure maven repositories: settings.xml under settings/profiles/profile/repositories id: settings-repo1 id:…
Gabriel Petrovay
  • 20,476
  • 22
  • 97
  • 168
2
votes
0 answers

I am facing a Maven error: "Unknown packaging: bundle". Any suggestions how to resolve it?

Anyone knows how to fix this error. I am trying to analyse my code using maven plugin for finding bugs. I am getting some error with packaging type bundle. The maven command I am executing is mvn clean compile site I tried adding the…
Rammohan
  • 493
  • 6
  • 27
2
votes
1 answer

Programmatically connect LDAP and authenticate credentials in AEM

I want to connect to LDAP programmatically in AEM using maven dependency which resolves in OSGi Approaches and subsequent issues faced:- 1. Cannot use @Reference private ExternalIdentityProviderManager externalIdentityProviderManager; final String…
2
votes
1 answer

What is the reason to add a browser driver as a maven dependency?

Why to include org.seleniumhq.selenium selenium-chrome-driver 3.9.1 to the maven project if we still need to download the driver's binary? What…
Vladimir
  • 630
  • 3
  • 12
  • 26
2
votes
2 answers

Unable to locate the jar in Maven Dependency Management

I have 2 projects testing.parent and testing.child. The project structure is as below: Their individual poms are as below: testing.parent 4.0.0 testing.group
ghostrider
  • 2,046
  • 3
  • 23
  • 46
2
votes
0 answers

jcaptcha dependencies not available

My legacy project is using jCaptcha libraries. While converting to that old project into a maven based project, I learned that jcaptcha is not available in any maven repository. I am really shocked but wanted to ask if someone had faced the same…
Hammad Dar
  • 475
  • 8
  • 18
2
votes
2 answers

Force Maven to Pick up Dependencies in Project Directory

I am using Maven to manage my dependencies and am trying to pull a few, proprietary, jar files from my project directory. (Yes, I know, I'm a crazy idiot who doesn't get the purpose of Maven and should never do this.) On compilation, I get the…
schweeb
  • 31
  • 4
2
votes
1 answer

Two Maven Dependencies with different scope

If I have the following two dependencies in the same pom.xml file: commons-codec commons-codec runtime
Hanna Khalil
  • 975
  • 1
  • 10
  • 28
2
votes
7 answers

Rest assured 3.0.3 maven dependency in IntelliJ IDEA not working

I am new to using IntelliJ. I setup the project structure to level 8 and added the SDK and required fields. Now in the POM I have the maven dependency for RESTAssured 3.0.3 I can see the dependency jar but it is not working in the project. The…
user4971722
2
votes
2 answers

Maven shade plugin relocate and bundle not working

In my POM.xml, I have used maven-shade plugin and relocated the httpClient dependency. But when I print the dependency tree using mvn dependency:tree, I still see the httpClient library in the tree as shown below. Why is this happening. Any help…
thevillageguy
  • 123
  • 2
  • 9
2
votes
2 answers

MVN install, cannot find artifact in local repository

I did mvn install and get this error message Failed to execute goal on project core: Could not resolve dependencies for project test:core:jar:2.0.1-SNAPSHOT: Could not find artifact lib-net:lib-net:jar:1.0.8 in central…
user2071938
  • 2,055
  • 6
  • 28
  • 60
2
votes
0 answers

Adding dependency via calling Maven plugin mojo

I have multiple POMs that inherit a dependency via their parent. The dependency is not to a maven plugin, but another project that I have created: com.my.name.group
dc95
  • 1,319
  • 1
  • 22
  • 44
2
votes
2 answers

Transitive dependencies coming from provided scope dependency

I have added vaadin-client-compiler dependency as a provided scope dependency in my vaadin application pom. As I have read, provided dependency is not transitive, so the dependencies of vaadin-client-compiler should become dependencies of my…
Lahiru Chandima
  • 22,324
  • 22
  • 103
  • 179
2
votes
3 answers

adding maven dependency causing java.lang.ClassNotFoundException

I have an application which is working fine until I have introduced the following maven dependencies. joda-time joda-time 2.3
2
votes
1 answer

Spring Boot 1.4: Spring Data Cassandra 1.4.2 is incompatible with Cassandra 3.0?

I'm facing a problem when I try to use Spring Data Cassandra in the most version of Spring Boot (1.4). It seems to be a maven dependencies problem, which does not load the latest version of Cassandra driver. Is there any solutions please to fix that…
Naou
  • 726
  • 1
  • 10
  • 23