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

Can we add an executable jar file as a dependency in another project?

I have created a spring boot project (Project A) and I have run the build as maven install. This has created an executable jar file in the .m2 folder. I want to use the above project as a dependency in two other spring boot projects(Project B and…
codegeek
  • 11
  • 5
0
votes
1 answer

Adding Twitter Jar File as a Maven dependency in eclipse

How can I add the Twitter4j core jar file as a Maven dependency in my project please? I am using eclipse Java.
0
votes
2 answers

Java SE CDI maven dependencies?

Java SE CDI maven dependencies? public class FooProcessor { private FooService fooService; @Inject public FooProcessor(FooService fooService) { this.fooService = fooService; } } What are the jar dependencies for CDI for…
eastwater
  • 4,624
  • 9
  • 49
  • 118
0
votes
2 answers

Intellij not able to resolve dependency for spring boot project

I am creating a simple spring boot project using intellij ideas's built in spring initializer feature. below are the steps that i am performing. File --> new --> project --> spring initializer Select the required dependency or starters i.e JPA, WEB…
0
votes
1 answer

Maven not installing aws-encryption-sdk-java dependency

maven noob here I have this in my pom.xml file com.amazonaws aws-encryption-sdk-java 1.6.1 but for some reason, when I do mvn dependency:resolve, this…
Kei
  • 611
  • 2
  • 11
  • 24
0
votes
1 answer

ClassNotFound With Maven WAR file

I looked around for a solution to this but could find anything reasonable. Most of them are related to JARs. I keep getting this frustrating error: 15-Jan-2020 11:36:06.605 SEVERE [Catalina-utility-1]…
hell_storm2004
  • 1,401
  • 2
  • 33
  • 66
0
votes
1 answer

Maven not downloading dependencies

I'm trying to get Maven to download dependencies. I'm using the commands I believe you are supposed to use, and this is just pure command line, no IDE involvement, but it still isn't happening. The problem is also with my own project, but I'll use…
rwallace
  • 31,405
  • 40
  • 123
  • 242
0
votes
0 answers

How to add external jars in/with Maven WITHOUT installing locally

Currently the way I'm referencing my Jars through my Spring Boot application is by using Maven dependency manager with a system path. example1.1 example1.1
0
votes
0 answers

Maven - ojdbc14.jar dependency issue

Facing the following error for Maven Spring Jdbc Project: Missing artifact for ojdbc14.jar I am using Eclipse Photon , Maven 3.0 Code screenshot
0
votes
1 answer

Which maven dependency to use for google contact V3 in spring boot java project?

I am trying to integrate google contact API for my project but I cannot find the google contact V3 maven dependency for accessing the ContactsService class. I tried the gdata-core dependency through which the build gets failed as my project also…
0
votes
1 answer

Custom remote repository being looked up even when jar of dependency component is created in maven local repository during building it

I have a dependency and a dependent component in my Maven project. I have successfully created the jar of the dependency project, using clean install - [INFO] Installing…
Sandeepan Nath
  • 9,966
  • 17
  • 86
  • 144
0
votes
1 answer

How can I select the output of maven dependency:list?

I have a big group of projects and they depend on each others with pom.xml. I want to get the relationships of these dependencies among projects in a file by shell. mvn dependency:list is the key command, but the result is not…
0
votes
1 answer

What is wrong with my configuration when trying to run Chromedriver? (IntelliJ / Spring)

I'm sending a post request from Postman to my locally running API. The API is supposed to open up chromedriver, but does not. Throws errors/warnings instead. I've tried setting chrome options and desired capabilities, but nothing seems to fix my…
0
votes
1 answer

“Update dependencies” option missing in "Update Maven Project" for new java-mvn project in Eclipse

I have a Java-Maven project imported in Eclipse. When I right click on the Project > Maven > Update Project, I see "Update Dependencies" option greyed out(not accessible) but "Force Update of Snapshots/Release" option accessible. Eclipse version -…
user2769790
  • 123
  • 1
  • 17
0
votes
0 answers

Spark-streaming to Solr: java.lang.NoClassDefFoundError: Could not initialize class org.apache.http.conn.ssl.SSLConnectionSocketFactory

I am facing the above error while trying to consume logs from a kafka-topic, process them, and push them into solr. The problem appears when I add the solr publishing part as I am able to consume and print either on hdfs or on the console the kafka…