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
2 answers

cucumber.runtime.CucumberException: Couldn't load plugin class: com.cucumber.listener.ExtentCucumberFormatter

I am running the script using Cucumber in BDD Framework and I am using Extent Reports plugin to create the execution report. I've created the test runner class as below: import java.io.File; import org.junit.runner.RunWith; import…
0
votes
1 answer

Ideal super pom for a corporate use with Centralized Maven Plugin Management and Dependency Management in one shot

With the help of this post, I am trying to collate the best practices to Centralize the Maven Plugins and Dependencies in one pom ? Although few of the questions are bit obivious, I am still posting it as an open question for the sake of curating…
zikzakjack
  • 972
  • 2
  • 9
  • 20
0
votes
1 answer

Duplicate JARs are getting copied though excluded in pom.xml

I am trying to add jdom 2.0.2 dependency in one of my project.In order to do that I added following entry in pom.xml org.jdom jdom 2.0.2 But after…
Rahman
  • 3,755
  • 3
  • 26
  • 43
0
votes
1 answer

How to add extra dependency to maven Web Application Resource (WAR) project to maven repository with NetBeans?

I'm having an issue adding a "catalina-6.0.26.jar" dependency (.jar file) to my maven repository, so that it will show up in the "Add Dependency" window of the query text box in the NetBeans IDE. For some reason, the maven repository does not seem…
0
votes
0 answers

maven dependency version issue

Am using a kafka-client dependency in my project abc-bus-api. The version is 2.1.0. See below. org.apache.kafka kafka-clients 2.1.0
ProgrammerBoy
  • 876
  • 6
  • 19
0
votes
0 answers

Fail the add dependency in pom

I try to add a dependency in maven pom. But Following error is occurred. Failed to execute goal on project myproject: Could not resolve dependencies for project com.myproject:myproject:jar:1.0-SNAPSHOT: Failed to collect dependencies at …
0
votes
0 answers

Dependencies compatibility with Java 7

I am upgrading my struts Application from oracle java 6 to 7. To do that i am upgrading my dependencies version in pom.xml file. I need to know about which version of the dependencies compatible with java 7. Here I mentioned the group-id and…
0
votes
1 answer

Adding JSTL dependies leads to maven issue and not displaying the pages through controller?

jstl jstl 1.2 Maven issue occurs after adding this [ERROR] error reading C:\Users\Me\.m2\repository\jstl\jstl\1.2\jstl1.2.jar; invalid END header…
0
votes
2 answers

What is the Maven dependency for org.apache.camel.component.http.HttpMethods for a Spring Boot app?

What dependency should I add for org.apache.camel.component.http.HttpMethods to be added to my Spring boot project? I have tried these but none of these seem to be…
0
votes
1 answer

How to resolve Eclipse plugins from p2-Repository and use them as Maven Dependency

Is it possible to resolve own eclipse-plugins from an p2-repository and to use this plugins as Maven-Dependency? I am writing a Maven-Plugin which should also use the Eclipse-Plugins. p2-repository
0
votes
2 answers

Histrogram of maven dependencies over all projects (What is used how often)

Is there a way to generate somehow a Histogram of Maven Dependencies? (number of usages over the library) I would like to know for all of our projects (not necessary connected in any terms): What libraries/dependencies are used In what version they…
0
votes
0 answers

Eclipse/Maven Project: Couldn't resolve dependencies while running Maven Install

I have created a Maven Project to run my automation scripts using selenium+Java. I have downloaded required dependencies and when I try to run Maven install from Eclipse. I see below error. Kindly suggest where is the issue. Please find below pom…
Aditya
  • 457
  • 2
  • 8
  • 27
0
votes
1 answer

MavenProject getArtifacts returns different list on module when call from parent

In a Mojo I need to scan all of the module's dependencies where it is a plugin, for that I use mavenProject.getArtifacts(). This works fine if I build the module directly, so not from the parent, but just call "mvn clean package" in de module's…
tbeernot
  • 2,473
  • 4
  • 24
  • 31
0
votes
1 answer

Resolving NoClassDefFoundError: org/apache/spark/Logging exception

I was trying out hbase-spark connector. To start with, I am trying out this code. My pom dependencies are: org.apache.spark spark-core_2.11
Mahesha999
  • 22,693
  • 29
  • 116
  • 189
0
votes
2 answers

Compatibility matrix for Spring-data-cassandra to cassandra version

Please post if any pointers to check Compatibility matrix for Spring-data-cassandra version to cassandra version? NOTE: This is a broader level question to check compatibility between DataStax's Cassandra and Spring-Data-Cassandra binary.