public abstract class AbstractSourceJarMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
excludeResources
Specifies whether or not to exclude resources from the sources-jar.
|
protected java.lang.String |
finalName
The filename to be used for the generated archive file.
|
protected boolean |
includePom
Specifies whether or not to include the POM file in the sources-jar.
|
protected java.io.File |
outputDirectory
The directory where the generated archive file will be put.
|
protected org.apache.maven.project.MavenProject |
project
The Maven Project Object
|
protected java.util.List |
reactorProjects
Contains the full list of projects in the reactor.
|
| Constructor and Description |
|---|
AbstractSourceJarMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDirectory(org.codehaus.plexus.archiver.Archiver archiver,
java.io.File sourceDirectory,
java.lang.String[] includes,
java.lang.String[] excludes) |
protected void |
addDirectory(org.codehaus.plexus.archiver.Archiver archiver,
java.io.File sourceDirectory,
java.lang.String prefix,
java.lang.String[] includes,
java.lang.String[] excludes) |
protected void |
archiveProjectContent(org.apache.maven.project.MavenProject p,
org.codehaus.plexus.archiver.Archiver archiver) |
protected org.apache.maven.archiver.MavenArchiver |
createArchiver() |
void |
execute() |
protected abstract java.lang.String |
getClassifier() |
protected java.lang.String |
getExtension() |
protected org.apache.maven.project.MavenProject |
getProject(org.apache.maven.project.MavenProject p) |
protected abstract java.util.List |
getResources(org.apache.maven.project.MavenProject p) |
protected abstract java.util.List |
getSources(org.apache.maven.project.MavenProject p) |
protected java.lang.String |
getType() |
protected void |
packageSources(java.util.List projects) |
protected void |
packageSources(org.apache.maven.project.MavenProject p) |
protected org.apache.maven.project.MavenProject project
protected boolean excludeResources
protected boolean includePom
protected java.io.File outputDirectory
protected java.lang.String finalName
protected java.util.List reactorProjects
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected abstract java.lang.String getClassifier()
sources or test-sourcesprotected abstract java.util.List getSources(org.apache.maven.project.MavenProject p)
throws org.apache.maven.plugin.MojoExecutionException
p - not nullorg.apache.maven.plugin.MojoExecutionExceptionprotected abstract java.util.List getResources(org.apache.maven.project.MavenProject p)
throws org.apache.maven.plugin.MojoExecutionException
p - not nullorg.apache.maven.plugin.MojoExecutionExceptionprotected void packageSources(org.apache.maven.project.MavenProject p)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void packageSources(java.util.List projects)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void archiveProjectContent(org.apache.maven.project.MavenProject p,
org.codehaus.plexus.archiver.Archiver archiver)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected org.apache.maven.archiver.MavenArchiver createArchiver()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void addDirectory(org.codehaus.plexus.archiver.Archiver archiver,
java.io.File sourceDirectory,
java.lang.String[] includes,
java.lang.String[] excludes)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void addDirectory(org.codehaus.plexus.archiver.Archiver archiver,
java.io.File sourceDirectory,
java.lang.String prefix,
java.lang.String[] includes,
java.lang.String[] excludes)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected java.lang.String getExtension()
protected org.apache.maven.project.MavenProject getProject(org.apache.maven.project.MavenProject p)
protected java.lang.String getType()
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.