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

How to integrate AutoCompleteBinding From ControlsFX to Javafx 19 project build with Maven

I am running into an error with my Javafx project where the AutoCompleteBinding class cannot be accessed because it does not export. I have found a lot of potential answers for this, but none of the solutions have worked. I know this exact question…
0
votes
2 answers

POM.xml multiple errors – Maven dependency problems

I am relatively new to Selenium and Maven. I cloned the project (project for the test automation). I got multiple issues with pom.xml. There are 2 errors: 1st. error and the biggest one: Missing artifact … 2nd. error: Failed to read artifact…
Vladislav
  • 121
  • 1
  • 9
0
votes
0 answers

Tomcat Upgrading from 8.5 to 10/11 version

we are planning to migrate our Tomcat from 8.5 to 10/11 version. at the moment we are using Java 8, we are planning to use Java 17 . I wanted to know if any one has previously migrated and what were the concerns regarding that. I am aware that…
Yash
  • 1
  • 1
0
votes
0 answers

Maven exported jar doesnt find maven dependency although I can run the main class with no problems

So I added these maven dependencies in my project which will allow me to encode my logs in JSON. After doing this I reloaded maven on IntelliJ and I was able to run the Main class and use these dependencies:
marialadelbario
  • 325
  • 1
  • 4
  • 19
0
votes
0 answers

Maven implementation in android project

Im using two android modules from maven, where one module depends on the other, how can this be achieved by implementing the dependency of both the modules together and make the modules the access it from dependency cache instead of…
Charan
  • 1
0
votes
1 answer

Could not find artifact org.thymeleaf.extras:thymeleaf-extras-springsecurity:pom

I am trying to get the dependency thymeleaf-extras-springsecurity5 and it is red and cannot be found with an error Could not find artifact org.thymeleaf.extras:thymeleaf-extras-springsecurity:pom:unknown in central…
tsavaph
  • 43
  • 5
0
votes
1 answer

What is the difference between normal and bom dependencies in pom.xml?

I see on maven repository, there are two types of dependencies while I was trying to add into my pom.xml of springBoot Application. artifactId = aws-java-sdk and aws-java-sdk-bom What's is the difference between the normal one and the one with the…
0
votes
1 answer

How to find out which dependency version I should use?

I'm implementing a new feature in my project, in this case replacing the resttemplate with the webclient. I put this dependency in my pom.xml: org.springframework.boot
deldev
  • 1,296
  • 18
  • 27
0
votes
1 answer

Where to manually download the JARS from when Maven cannot find a dependency

I want to create a Maven webapp sample project on a dev machine without internet, but with access a Nexus repo via the local network. The Nexus repo is years old, so it has most dependencies, but not all. I have set up maven that it uses the local…
halloleo
  • 9,216
  • 13
  • 64
  • 122
0
votes
0 answers

Not able to exclude transitive dependencies from a dependency whose type is zip

I have this dependency in my pom.xml com.sun.xml.ws jaxws-ri 2.3.4 zip compile
Prashanth
  • 95
  • 1
  • 8
0
votes
0 answers

How to find package name once Maven dependency is added

I'm attempting to use the socket.io implementation for Java. I need 2 dependencies: 1) Engine.IO Java Server and 2) Socket.IO Server Java. I'm struggling to import the actual Java packages once the dependencies have been added to my pom.xml. Looking…
0
votes
0 answers

Remove an undeclared maven dependency not having any parent

I am facing an issue wherein my pom file which is inheriting from a parent throws a warning - Declared unused dependency found. The issue is my pom file does not have this dependency defined explicitly and neither does immediate the parent pom. The…
0
votes
1 answer

Adding my own framework as Dependency And getting errors while starting project

I am using Java-17 and Spring 2.6.7 in my-core-framework, and adding that in another Spring project as a dependency, but while starting my dependent project getting below errors, even if I tried to exclude repetitive dependencies from the child…
0
votes
1 answer

Maven Dependencies Jar Missing for Slf4j wrapper

I have a project in Maven for ExtentReports. When I run it, the test fail and says. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See…
0
votes
1 answer

How to override default version of library included by artifact in maven?

I have a spring batch dependency in my pom.xml declared as below: org.springframework.batch spring-batch-core 3.0.9.RELEASE There is one artifact…
user124
  • 423
  • 2
  • 7
  • 26