dependency:get
Full name:
org.apache.maven.plugins:maven-dependency-plugin:3.8.1:get
Description:
Resolves a single artifact, eventually transitively, from the specified remote repositories. Caveat: will always check the central repository defined in the super pom. You could use a mirror entry in your settings.xml
Attributes:
- The goal is thread-safe and supports parallel builds.
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
<artifact> |
String |
- |
A string of the form groupId:artifactId:version[:packaging[:classifier]]. User Property: artifact |
<artifactId> |
String |
- |
The artifactId of the artifact to resolve. Ignored if artifact is used.User Property: artifactId |
<classifier> |
String |
2.3 |
The classifier of the artifact to resolve. Ignored if artifact is used.User Property: classifier |
<groupId> |
String |
- |
The groupId of the artifact to resolve. Ignored if artifact is used.User Property: groupId |
<packaging> |
String |
- |
The packaging of the artifact to resolve. Ignored if artifact is used.Default: jar User Property: packaging |
<remoteRepositories> |
String |
- |
Repositories in the format id::[layout]::url or just url, separated by comma. ie. central::default::https://repo.maven.apache.org/maven2,myrepo::::https://repo.acme.com,https://repo.acme2.com User Property: remoteRepositories |
<skip> |
boolean |
2.7 |
Skip plugin execution completely. Default: false User Property: mdep.skip |
<transitive> |
boolean |
- |
Resolve transitively, retrieving the specified artifact and all of its dependencies. Default: true User Property: transitive |
<version> |
String |
- |
The version of the artifact to resolve. Ignored if artifact is used.User Property: version |
Parameter Details
<artifact>
A string of the form groupId:artifactId:version[:packaging[:classifier]].
- Type:
java.lang.String
- Required:
No
- User Property:
artifact
<artifactId>
The artifactId of the artifact to resolve. Ignored if
artifact
is used.- Type:
java.lang.String
- Required:
No
- User Property:
artifactId
<classifier>
The classifier of the artifact to resolve. Ignored if
artifact
is used.- Type:
java.lang.String
- Since:
2.3
- Required:
No
- User Property:
classifier
<groupId>
The groupId of the artifact to resolve. Ignored if
artifact
is used.- Type:
java.lang.String
- Required:
No
- User Property:
groupId
<packaging>
The packaging of the artifact to resolve. Ignored if
artifact
is used.- Type:
java.lang.String
- Required:
No
- User Property:
packaging
- Default:
jar
<remoteRepositories>
Repositories in the format id::[layout]::url or just url, separated by comma. ie. central::default::https://repo.maven.apache.org/maven2,myrepo::::https://repo.acme.com,https://repo.acme2.com
- Type:
java.lang.String
- Required:
No
- User Property:
remoteRepositories
<skip>
Skip plugin execution completely.
- Type:
boolean
- Since:
2.7
- Required:
No
- User Property:
mdep.skip
- Default:
false
<transitive>
Resolve transitively, retrieving the specified artifact and all of its dependencies.
- Type:
boolean
- Required:
No
- User Property:
transitive
- Default:
true
<version>
The version of the artifact to resolve. Ignored if
artifact
is used.- Type:
java.lang.String
- Required:
No
- User Property:
version