Class BuildPluginClasspathMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.dependency.AbstractDependencyMojo
org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojo
org.apache.maven.plugins.dependency.fromDependencies.BuildClasspathMojo
de.iip_ecosphere.platform.tools.maven.dependencies.BuildClasspathMojo
de.iip_ecosphere.platform.tools.maven.dependencies.BuildPluginClasspathMojo
- All Implemented Interfaces:
Comparator<org.apache.maven.artifact.Artifact>,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="build-plugin-classpath",
requiresDependencyResolution=TEST,
defaultPhase=PACKAGE,
threadSafe=true)
public class BuildPluginClasspathMojo
extends BuildClasspathMojo
Specialized mojo for building plugin classpath files.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprivate final Stringprivate Stringprivate Fileprivate StringFields inherited from class org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojo
classifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTransitive, excludeTypes, includeArtifactIds, includeClassifiers, includeGroupIds, includeScope, includeTypes, markersDirectory, overWriteIfNewer, overWriteReleases, overWriteSnapshots, prependGroupId, typeFields inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojo
outputAbsoluteArtifactFilename, reactorProjects, sessionFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdjusts the setup.private voidcomposeBefores(Function<String, String> func) Composes and sets the befores.private StringcomposeMyArtifact(String classifier, String extension) Composes the path for one of the own artifacts.protected voidprivate StringReturns the relative target directory.Methods inherited from class de.iip_ecosphere.platform.tools.maven.dependencies.BuildClasspathMojo
getBefores, newResolveArtifactProjectBuildingRequest, readEntries, readEntriesToList, readEntriesToSet, setBefores, setFileSeparator, setLocalRepoProperty, setOutputFile, setPathSeparator, setPrefix, setPrependsMethods inherited from class org.apache.maven.plugins.dependency.fromDependencies.BuildClasspathMojo
appendArtifactPath, attachFile, compare, getMarkedArtifactFilter, isStripVersion, readClasspathFile, setOutputProperty, setRegenerateFile, setStripVersionMethods inherited from class org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojo
filterMarkedDependencies, getArtifactResolver, getClassifierTranslatedDependencies, getDependencyResolver, getDependencySets, getDependencySets, getMarkersDirectory, getRepositoryManager, getResolvedDependencies, isPrependGroupId, resolve, setMarkersDirectory, setPrependGroupIdMethods inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojo
copyFile, execute, getArchiverManager, getProject, isSilent, isSkip, isUseJvmChmod, newResolvePluginProjectBuildingRequest, setArchiverManager, setSilent, setSkip, setUseJvmChmod, unpack, unpack, unpackMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
KEY_PREFIX
- See Also:
-
KEY_UNPACK_MODE
- See Also:
-
KEY_SETUP_DESCRIPTOR
- See Also:
-
KEY_PLUGIN_IDS
- See Also:
-
KEY_SEQUENCE_NR
- See Also:
-
prefix
- See Also:
-
addTestArtifact
@Parameter(property="mdep.addTestArtifact", defaultValue="false") private boolean addTestArtifact -
unpackMode
-
setupDescriptor
@Parameter(property="mdep.setupDescriptor", defaultValue="FolderClasspath") private String setupDescriptor -
pluginIds
-
asTest
@Parameter(required=false) private boolean asTest -
targetDirectory
-
-
Constructor Details
-
BuildPluginClasspathMojo
public BuildPluginClasspathMojo()
-
-
Method Details
-
getRelTargetDirectory
Returns the relative target directory.- Returns:
- the relative target directory
-
composeMyArtifact
Composes the path for one of the own artifacts.- Parameters:
classifier- optional classifier, may be empty or nullextension- optional file extension, defaults to "jar" if empty or null- Returns:
- the path to the composed artifact
-
doExecute
protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException- Overrides:
doExecutein classBuildClasspathMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
adjustTo
Description copied from class:BuildClasspathMojoAdjusts the setup.- Overrides:
adjustToin classBuildClasspathMojo- Parameters:
func- the adjustment function
-
composeBefores
Composes and sets the befores.- Parameters:
func- a path adjustment function, may be null
-