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

unable to find client.indices().putMapping(putMappingRequest) in elasticsearch 6.2.1

I was trying to insert mapping in the RestHighLevelClient of elasticsearch 6.2.1 From the following link I had found the following code for the insertion of…
0
votes
0 answers

How to make maven project to see dependencies in my local repository?

I have been facing difficulty with adding dependencies to maven war project .Everytime ,when i try to add dependency in my pom.xml, i don't see java ee 7 api in pom.xml dependencies tab.After i copied from maven repository dependency code to pom.xml…
0
votes
1 answer

Convert Spring MVC to Spring BOOT

I'm converting admin module of a Spring MVC project to Spring Boot. After adding dependencies in POM.xml, the jar files are not automatically added to the classpath and I don't see a folder named MAVEN DEPENDENCIES with all the spring boot jars…
0
votes
2 answers

How to import classes from `com.android.build.api.transform` package in Maven

I am trying to transfer a gradle-based build plugin for android to a maven build system. Up to now I was successful except with the android part. It seems that I am missing classes from the package com.android.build.api.transform. Although I used…
0
votes
0 answers

exclude dependencies that are not in depedency tree

When I run CLM scan on a jar, I am getting errors on a couple of libraries that I cannot find in the dependency tree for this maven project. Does anyone know how to exclude these dependencies or how I can find the root dependency for such transitive…
sj_24
  • 41
  • 2
  • 8
0
votes
1 answer

maven system scope dependency could not be resolved

I have an application which run on IBM Was. It is a maven Project and On its dependency tree There are some was runtime dependencies but their scopes are system. These system scope jars do not exists in .m2/repository or our local nexus. But I can…
clockworks
  • 3,755
  • 5
  • 37
  • 46
0
votes
0 answers

do I have to mention direct dependencies that are also transitive dependency in pom.xml?

Consider that log4j is a direct dependency of project A and project A is a direct dependency of project B, so log4j is transitive dependency of project B. now when I try to compile project B, It fails with an error saying: "package org.apache.log4j…
ayyoob imani
  • 639
  • 7
  • 16
0
votes
1 answer

Local Maven Repo have no Symbols

I created an local Maven Repo and deploy a own lib there: with: mvn clean package install deploy on: http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 de.example example-lib
Gregor Sklorz
  • 1,645
  • 2
  • 19
  • 27
0
votes
0 answers

Maven: Take internal dependency outside of plugin

In the build section of one of my POMs, I have usage of a plugin in a following way. org.apache.maven.plugins maven-assembly-plugin
dc95
  • 1,319
  • 1
  • 22
  • 44
0
votes
0 answers

How to change the dependency management classifier via profile activation

As part of a migration for a build from Java 1.7 to 1.8, I am trying to cleanly maintain a separation of the maven artifacts (the current JRE on the web server is still running 1.7 - it would be a Bad Thing to have a Java 8 compiled program get on…
user6548046
0
votes
0 answers

Error Eclipse to deploy war of maven project in Weblogic

I get some errors when I try deploy de maven project with the Weblogic server that I added in Eclipse. I have Java JDK 1.8.0.20 and Weblogic server 12.2.1.2.0 The errors are:
0
votes
1 answer

How is an artifact's final dependency scope in a project determined?

With reference to https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html Each of the scopes (except for import) affects transitive dependencies in different ways, as is demonstrated in the table below. If a…
thegreatjedi
  • 2,788
  • 4
  • 28
  • 49
0
votes
1 answer

What is the final dependency scope when different scopes are specified for one JAR?

I am studying some JARs in the Maven Repository and discovered this: Hibernate Validator Engine 5.4.0.FINAL lists jboss-logging as a compile dependency, and jboss-logging-processor as a provided dependency jboss-logging-processor lists…
thegreatjedi
  • 2,788
  • 4
  • 28
  • 49
0
votes
0 answers

Maven: Adding maven-core dependency Causes PlexusContainerException

I am trying to use Mojo-Executor and trying out the example of copy-dependencies on that link. According to the instructions, I have included it as dependency in my maven plugin POM and have created a mojo as following: package executors; import…
dc95
  • 1,319
  • 1
  • 22
  • 44
0
votes
1 answer

Spring Dependencies - org.springframework.boot vs org.springframework

I am having a hard time determining whether I need to use org.springframework.boot dependencies, or use org.springframework dependencies and non-spring dependencies instead, in a non-spring boot application module such as a shared library. At the…
BARJ
  • 1,543
  • 3
  • 20
  • 28
1 2 3
14
15