Package org.glassfish.build
Class UnpackSourcesMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.glassfish.build.UnpackSourcesMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="unpack-sources", requiresDependencyResolution=RUNTIME, defaultPhase=PROCESS_RESOURCES, requiresProject=true) public final class UnpackSourcesMojo extends org.apache.maven.plugin.AbstractMojoResolves and unpack corresponding sources of project dependencies.
-
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.archiver.manager.ArchiverManagerarchiverManagerTo look up Archiver/UnArchiver implementations.private booleanattachSourcesAttach the generated artifact to the maven project.private java.lang.StringexcludeArtifactIdsComma separated list of Artifact names to exclude.private java.lang.StringexcludeClassifiersComma Separated list of Classifiers to exclude.private java.lang.StringexcludeGroupIdsComma separated list of GroupId Names to exclude.private java.lang.StringexcludesComma separated list of include patterns.private java.lang.StringexcludeScopeScope to exclude.private booleanexcludeTransitiveIf we should exclude transitive dependencies.private java.lang.StringexcludeTypesComma Separated list of Types to exclude.private java.lang.StringincludeArtifactIdsComma separated list of Artifact names to include.private java.lang.StringincludeClassifiersComma Separated list of Classifiers to include.private java.lang.StringincludeGroupIdsComma separated list of GroupIds to include.private java.lang.StringincludesComma separated list of include patterns.private java.lang.StringincludeScopeScope to include.private java.lang.StringincludeTypesComma Separated list of Types to include.private java.io.FileoutputDirectoryDirectory where the sources artifacts are unpacked.private org.apache.maven.project.MavenProjectprojectThe maven project.private static java.lang.StringPROPERTY_PREFIXParameters property prefix.private java.util.List<org.eclipse.aether.repository.RemoteRepository>remoteReposThe project remote repositories to use.private org.eclipse.aether.RepositorySystemSessionrepoSessionThe current repository/network configuration of Maven.private org.eclipse.aether.RepositorySystemrepoSystemThe entry point to Aether.private booleansilentVerbosity.private booleanskipSkip this mojo.
-
Constructor Summary
Constructors Constructor Description UnpackSourcesMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()
-
-
-
Field Detail
-
PROPERTY_PREFIX
private static final java.lang.String PROPERTY_PREFIX
Parameters property prefix.- See Also:
- Constant Field Values
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) private org.apache.maven.project.MavenProject projectThe maven project.
-
repoSystem
@Component private org.eclipse.aether.RepositorySystem repoSystem
The entry point to Aether.
-
repoSession
@Parameter(defaultValue="${repositorySystemSession}", readonly=true) private org.eclipse.aether.RepositorySystemSession repoSessionThe current repository/network configuration of Maven.
-
remoteRepos
@Parameter(defaultValue="${project.remoteProjectRepositories}", readonly=true) private java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteReposThe project remote repositories to use.
-
archiverManager
@Component private org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
To look up Archiver/UnArchiver implementations.
-
includes
@Parameter(property="gfbuild.unpackincludes") private java.lang.String includes
Comma separated list of include patterns.
-
excludes
@Parameter(property="gfbuild.unpackexcludes") private java.lang.String excludes
Comma separated list of include patterns.
-
excludeTransitive
@Parameter(property="gfbuild.unpackexcludeTransitive", defaultValue="", required=false) private boolean excludeTransitiveIf we should exclude transitive dependencies.
-
includeTypes
@Parameter(property="gfbuild.unpackincludeTypes", defaultValue="", required=false) private java.lang.String includeTypesComma Separated list of Types to include. Empty String indicates include everything (default).
-
excludeTypes
@Parameter(property="gfbuild.unpackexcludeTypes", defaultValue="", required=false) private java.lang.String excludeTypesComma Separated list of Types to exclude. Empty String indicates don't exclude anything (default).
-
includeScope
@Parameter(property="gfbuild.unpackincludeScope", defaultValue="", required=false) private java.lang.String includeScopeScope to include. An Empty string indicates all scopes (default).
-
excludeScope
@Parameter(property="gfbuild.unpackexcludeScope", defaultValue="", required=false) private java.lang.String excludeScopeScope to exclude. An Empty string indicates no scopes (default).
-
includeClassifiers
@Parameter(property="gfbuild.unpackincludeClassifiers", defaultValue="", required=false) private java.lang.String includeClassifiersComma Separated list of Classifiers to include. Empty String indicates include everything (default).
-
excludeClassifiers
@Parameter(property="gfbuild.unpackexcludeClassifiers", defaultValue="", required=false) private java.lang.String excludeClassifiersComma Separated list of Classifiers to exclude. Empty String indicates don't exclude anything (default).
-
excludeArtifactIds
@Parameter(property="gfbuild.unpackexcludeArtifactIds", defaultValue="", required=false) private java.lang.String excludeArtifactIdsComma separated list of Artifact names to exclude.
-
includeArtifactIds
@Parameter(property="gfbuild.unpackincludeArtifactIds", defaultValue="") private java.lang.String includeArtifactIdsComma separated list of Artifact names to include.
-
excludeGroupIds
@Parameter(property="gfbuild.unpackexcludeGroupIds", defaultValue="") private java.lang.String excludeGroupIdsComma separated list of GroupId Names to exclude.
-
includeGroupIds
@Parameter(property="gfbuild.unpackincludeGroupIds", defaultValue="") private java.lang.String includeGroupIdsComma separated list of GroupIds to include.
-
outputDirectory
@Parameter(property="gfbuild.unpackoutputDirectory", defaultValue="${project.build.directory}/sources-dependency") private java.io.File outputDirectoryDirectory where the sources artifacts are unpacked.
-
silent
@Parameter(property="gfbuild.unpacksilent", defaultValue="false") private boolean silentVerbosity.
-
attachSources
@Parameter(property="gfbuild.unpackattach-sources", defaultValue="false") private boolean attachSourcesAttach the generated artifact to the maven project.
-
skip
@Parameter(property="gfbuild.unpackskip", defaultValue="false") private boolean skipSkip this mojo.
-
-