Package de.qaware.maven.plugin.offline
Class DynamicDependency
- java.lang.Object
-
- de.qaware.maven.plugin.offline.DynamicDependency
-
public class DynamicDependency extends java.lang.ObjectConfiguration used to declare extra dependencies for theResolveDependenciesMojo.Users can declare extra dependencies that do not appear in any dependency tree of the project but are still needed for the build to work.
The most common examples are artifacts that are dynamically loaded by plugins during build runtime
- Author:
- Andreas Janning andreas.janning@qaware.de
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIGURATION_ERROR_MESSAGE
-
Constructor Summary
Constructors Constructor Description DynamicDependency()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetArtifactId()java.lang.StringgetClassifier()java.lang.StringgetGroupId()RepositoryTypegetRepositoryType()java.lang.StringgetType()java.lang.StringgetVersion()voidsetArtifactId(java.lang.String artifactId)voidsetClassifier(java.lang.String classifier)voidsetGroupId(java.lang.String groupId)voidsetRepositoryType(RepositoryType repositoryType)voidsetType(java.lang.String type)voidsetVersion(java.lang.String version)java.lang.StringtoString()voidvalidate()Validate that all required parameters are set.
-
-
-
Field Detail
-
CONFIGURATION_ERROR_MESSAGE
public static final java.lang.String CONFIGURATION_ERROR_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
public void validate() throws org.apache.maven.plugin.MojoExecutionExceptionValidate that all required parameters are set.- Throws:
org.apache.maven.plugin.MojoExecutionException- if any required parameter is not set
-
getArtifactId
public java.lang.String getArtifactId()
- Returns:
- The artifactId of the
DynamicDependency
-
setArtifactId
public void setArtifactId(java.lang.String artifactId)
-
getGroupId
public java.lang.String getGroupId()
- Returns:
- The groupId of the
DynamicDependency
-
setGroupId
public void setGroupId(java.lang.String groupId)
-
getVersion
public java.lang.String getVersion()
- Returns:
- The version of the
DynamicDependency
-
setVersion
public void setVersion(java.lang.String version)
-
getType
public java.lang.String getType()
- Returns:
- The type of the
DynamicDependency. Either returns the user entered value or "jar" as a default if the user provided no value.
-
setType
public void setType(java.lang.String type)
-
getClassifier
public java.lang.String getClassifier()
- Returns:
- The classifier of the
DynamicDependency. May be null.
-
setClassifier
public void setClassifier(java.lang.String classifier)
-
getRepositoryType
public RepositoryType getRepositoryType()
- Returns:
- from which type of remoteRepository this dependency must be downloaded
-
setRepositoryType
public void setRepositoryType(RepositoryType repositoryType)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-