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.ArchiverManagerTo look up Archiver/UnArchiver implementations.private booleanAttach the generated artifact to the maven project.private StringComma separated list of Artifact names to exclude.private StringComma Separated list of Classifiers to exclude.private StringComma separated list of GroupId Names to exclude.private StringComma separated list of include patterns.private StringScope to exclude.private booleanIf we should exclude transitive dependencies.private StringComma Separated list of Types to exclude.private StringComma separated list of Artifact names to include.private StringComma Separated list of Classifiers to include.private StringComma separated list of GroupIds to include.private StringComma separated list of include patterns.private StringScope to include.private StringComma Separated list of Types to include.private FileDirectory where the sources artifacts are unpacked.private org.apache.maven.project.MavenProjectThe maven project.private static final StringParameters property prefix.private List<org.eclipse.aether.repository.RemoteRepository> The project remote repositories to use.private org.eclipse.aether.RepositorySystemSessionThe current repository/network configuration of Maven.private org.eclipse.aether.RepositorySystemThe entry point to Aether.private booleanVerbosity.private booleanSkip 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
-
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
-