Questions tagged [maven-dependency]

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

Filter by
Sorted by
Tagged with
328votes
5answers
497kviews

Maven: Command to update repository after adding dependency to POM

I've added a new dependency to my POM. Is there a simple command I can run to download this dependency to my repository?
user avatar
  • 16.9k
46votes
1answer
12kviews

Maven dependencies - version vs updates

mvnrepository usually lists "version" and "updates" for each dependency. If I'm publishing my own package, how do I specify the "updates" version Which dependancy does Maven used when resolving ...
user avatar
  • 3,295
37votes
5answers
11kviews

What is the difference between "+-" and "\-" in maven dependency tree output?

If we consider the following example, what is the difference between "+-" and "\-" symbols and what do they signify? [INFO] [dependency:tree] [INFO] org.apache.maven.plugins:maven-dependency-plugin:...
user avatar
  • 1,438
26votes
2answers
41kviews

Maven - Multiple version of same dependency

I have a web application in which the dependencies pull in two jars called: javassist-3.9.0.GA.jar javassist-3.20.0-GA.jar when I package the WAR I have both of these in the WEB-INF/lib directory, ...
user avatar
  • 1,377
26votes
4answers
6kviews

Systematic approach with Maven to deal with dependency hell

I'm struggling with how to approach jar dependency hell. I have a Maven-IntelliJ Scala project that uses some aws sdk's. Recently adding the kinesis sdk has introduced incompatible versions of Jackson....
user avatar
  • 2,001
21votes
1answer
14kviews

Jenkins building a product consisting of many Maven projects? (with Jenkins Pipeline plugin?)

We have a product that consists of many Maven projects that depend on each other. All of these Maven projects come together in a single project which delivers the end product. The Maven projects ...
user avatar
13votes
5answers
86kviews

How to work with selenium-chrome-driver in Maven without ChromeDriver.exe

I add the below dependency and code for Opening Chrome,but browser is not opening. <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-chrome-driver&...
user avatar
  • 277
12votes
1answer
9kviews

Spring SAML: Could not find artifacts while using as maven dependency with version 1.0.4.RELEASE

I am trying to use spring-security-saml2-core-1.0.4.RELEASE as maven dependency for my project and encounter two issues when mvn install: Failure "Could not find artifact xml-apis:xml-apis:jar:1.4 ......
user avatar
12votes
2answers
4kviews

How to find the minimum JDK version of a specific version of maven dependency?

Now I use the JDK1.5 to develop the program, so I have to guarantee the maven dependencies I want to use are compatible with the JDK 1.5 . Sometimes, latest version needs jdk higher than 1.5 but older ...
user avatar
  • 1,838
11votes
1answer
484views

java.lang.NoSuchFieldError: INSTANCE in bitpay SDK

I want to implement this code public void testGetExchangeRate() throws Exception { ECKey key = KeyUtils.createEcKey(); String clientName = "server 1"; BitPay bitpay = new BitPay(key, ...
user avatar
  • 2,880
10votes
1answer
5kviews

Understanding eclipse maven dependency hierarchy

I want to understand the dependencies for a multi-module maven project and for that referred to eclipse dependency hierarchy. I did understand fairly, however some of the things I am not able to ...
user avatar
  • 7,367
10votes
1answer
8kviews

How to ignore Maven dependency-check failure on missing nvd file

I tried to perform a release of my project today using the Maven release plugin. It failed due to the dependency-check-maven plugin's attempt to download the 2020 version of the CVD file, which hasn'...
user avatar
7votes
3answers
15kviews

How To Add Maven Dependency (Android Studio)

I have this code below.. <dependency> <groupId>me.gujun.android.taggroup</groupId> <artifactId>library</artifactId> <version>1.4</version> &...
user avatar
  • 1,663
7votes
1answer
257views

How can I use dependencies of a project that's been marked as provided?

I have the following scenario, simplified: projectX ---> projectA ---> projectB Where ---> means "depends on". ProjectB is really simple. It doesn't declare any dependenci. In fact, the ...
user avatar
7votes
1answer
7kviews

Access maven property using dependency management

I am using maven's dependency-management to import the POM into my project Y as below: <dependencyManagement> <dependencies> <dependency> <groupId>com....
user avatar
  • 345

15 30 50 per page
1
2 3 4 5
13