org.apache.maven.plugin.dependency
public class BuildClasspathMojo extends AbstractDependencyFilterMojo implements java.util.Comparator
classifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTransitive, excludeTypes, includeArtifactIds, includeClassifiers, includeGroupIds, includeScope, includeTypes, markersDirectory, overWriteIfNewer, overWriteReleases, overWriteSnapshots, type
archiverManager, artifactCollector, artifactMetadataSource, factory, local, outputAbsoluteArtifactFilename, project, reactorProjects, remoteRepos, resolver, silent
Constructor and Description |
---|
BuildClasspathMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendArtifactPath(org.apache.maven.artifact.Artifact art,
java.lang.StringBuffer sb)
Appends the artifact path into the specified stringBuffer.
|
protected void |
attachFile(java.lang.String cpString) |
int |
compare(java.lang.Object arg1,
java.lang.Object arg2)
Compares artifacts lexicographically, using pattern [group_id][artifact_id][version].
|
void |
execute()
Main entry into mojo.
|
java.io.File |
getCpFile() |
java.lang.String |
getFileSeparator() |
java.lang.String |
getLocalRepoProperty() |
protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter |
getMarkedArtifactFilter() |
java.lang.String |
getPathSeparator() |
java.lang.String |
getPrefix() |
boolean |
isFileSepSet() |
boolean |
isPathSepSet() |
boolean |
isRegenerateFile() |
boolean |
isStripVersion() |
protected java.lang.String |
readClasspathFile()
Reads into a string the file specified by the mojo param 'outputFile'.
|
void |
setCpFile(java.io.File theCpFile) |
void |
setFileSeparator(java.lang.String theFileSeparator) |
void |
setFileSepSet(boolean isFileSepSet) |
void |
setLocalRepoProperty(java.lang.String localRepoProperty) |
void |
setPathSeparator(java.lang.String thePathSeparator) |
void |
setPathSepSet(boolean isPathSepSet) |
void |
setPrefix(java.lang.String thePrefix) |
void |
setRegenerateFile(boolean theRegenerateFile) |
void |
setStripVersion(boolean theStripVersion) |
filterMarkedDependencies, getClassifierTranslatedDependencies, getDependencySets, getMarkersDirectory, getResolvedDependencies, setMarkersDirectory
copyFile, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLocal, getLog, getProject, getRemoteRepos, getResolver, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, unpack, unpack
getPluginContext, setLog, setPluginContext
public void execute() throws org.apache.maven.plugin.MojoExecutionException
execute
in interface org.apache.maven.plugin.Mojo
org.apache.maven.plugin.MojoExecutionException
- with a message if an error occurs.#getDependencies
,
#copyArtifact(Artifact, boolean)
protected void attachFile(java.lang.String cpString) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void appendArtifactPath(org.apache.maven.artifact.Artifact art, java.lang.StringBuffer sb)
art
- sb
- protected java.lang.String readClasspathFile() throws java.io.IOException
org.apache.maven.plugin.MojoExecutionException
java.io.IOException
public int compare(java.lang.Object arg1, java.lang.Object arg2)
compare
in interface java.util.Comparator
arg1
- first objectarg2
- second object0
if the argument string is equal to this string; a value less than
0
if this string is lexicographically less than the string argument; and a value greater
than 0
if this string is lexicographically greater than the string argument.protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter getMarkedArtifactFilter()
getMarkedArtifactFilter
in class AbstractDependencyFilterMojo
public java.io.File getCpFile()
public void setCpFile(java.io.File theCpFile)
theCpFile
- the outputFile to setpublic java.lang.String getFileSeparator()
public void setFileSeparator(java.lang.String theFileSeparator)
theFileSeparator
- the fileSeparator to setpublic java.lang.String getPathSeparator()
public void setPathSeparator(java.lang.String thePathSeparator)
thePathSeparator
- the pathSeparator to setpublic java.lang.String getPrefix()
public void setPrefix(java.lang.String thePrefix)
thePrefix
- the prefix to setpublic boolean isRegenerateFile()
public void setRegenerateFile(boolean theRegenerateFile)
theRegenerateFile
- the regenerateFile to setpublic boolean isStripVersion()
public void setStripVersion(boolean theStripVersion)
theStripVersion
- the stripVersion to setpublic java.lang.String getLocalRepoProperty()
public void setLocalRepoProperty(java.lang.String localRepoProperty)
public boolean isFileSepSet()
public void setFileSepSet(boolean isFileSepSet)
public boolean isPathSepSet()
public void setPathSepSet(boolean isPathSepSet)
Copyright © 2014. All Rights Reserved.