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.AbstractMojo
Resolves and unpack corresponding sources of project dependencies.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.codehaus.plexus.archiver.manager.ArchiverManager
To look up Archiver/UnArchiver implementations.private boolean
Attach the generated artifact to the maven project.private String
Comma separated list of Artifact names to exclude.private String
Comma Separated list of Classifiers to exclude.private String
Comma separated list of GroupId Names to exclude.private String
Comma separated list of include patterns.private String
Scope to exclude.private boolean
If we should exclude transitive dependencies.private String
Comma Separated list of Types to exclude.private String
Comma separated list of Artifact names to include.private String
Comma Separated list of Classifiers to include.private String
Comma separated list of GroupIds to include.private String
Comma separated list of include patterns.private String
Scope to include.private String
Comma Separated list of Types to include.private File
Directory where the sources artifacts are unpacked.private org.apache.maven.project.MavenProject
The maven project.private static final String
Parameters property prefix.private List<org.eclipse.aether.repository.RemoteRepository>
The project remote repositories to use.private org.eclipse.aether.RepositorySystemSession
The current repository/network configuration of Maven.private org.eclipse.aether.RepositorySystem
The entry point to Aether.private boolean
Verbosity.private boolean
Skip this mojo.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
PROPERTY_PREFIX
Parameters property prefix.- See Also:
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) private org.apache.maven.project.MavenProject projectThe maven project. -
repoSystem
@Component private org.eclipse.aether.RepositorySystem repoSystemThe 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 List<org.eclipse.aether.repository.RemoteRepository> remoteReposThe project remote repositories to use. -
archiverManager
@Component private org.codehaus.plexus.archiver.manager.ArchiverManager archiverManagerTo look up Archiver/UnArchiver implementations. -
includes
Comma separated list of include patterns. -
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 String includeTypesComma Separated list of Types to include. Empty String indicates include everything (default). -
excludeTypes
@Parameter(property="gfbuild.unpackexcludeTypes", defaultValue="", required=false) private 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 String includeScopeScope to include. An Empty string indicates all scopes (default). -
excludeScope
@Parameter(property="gfbuild.unpackexcludeScope", defaultValue="", required=false) private String excludeScopeScope to exclude. An Empty string indicates no scopes (default). -
includeClassifiers
@Parameter(property="gfbuild.unpackincludeClassifiers", defaultValue="", required=false) private String includeClassifiersComma Separated list of Classifiers to include. Empty String indicates include everything (default). -
excludeClassifiers
@Parameter(property="gfbuild.unpackexcludeClassifiers", defaultValue="", required=false) private 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 String excludeArtifactIdsComma separated list of Artifact names to exclude. -
includeArtifactIds
@Parameter(property="gfbuild.unpackincludeArtifactIds", defaultValue="") private String includeArtifactIdsComma separated list of Artifact names to include. -
excludeGroupIds
@Parameter(property="gfbuild.unpackexcludeGroupIds", defaultValue="") private String excludeGroupIdsComma separated list of GroupId Names to exclude. -
includeGroupIds
@Parameter(property="gfbuild.unpackincludeGroupIds", defaultValue="") private String includeGroupIdsComma separated list of GroupIds to include. -
outputDirectory
@Parameter(property="gfbuild.unpackoutputDirectory", defaultValue="${project.build.directory}/sources-dependency") private 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.
-
-
Constructor Details
-
UnpackSourcesMojo
public UnpackSourcesMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-