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 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 File |
outputDirectory
The directory where the generated archive file will be put.
|
protected org.apache.maven.project.MavenProject |
project
The Maven Project Object
|
protected 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,
File sourceDirectory,
String[] includes,
String[] excludes) |
protected void |
addDirectory(org.codehaus.plexus.archiver.Archiver archiver,
File sourceDirectory,
String prefix,
String[] includes,
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 String |
getClassifier() |
protected String |
getExtension() |
protected org.apache.maven.project.MavenProject |
getProject(org.apache.maven.project.MavenProject p) |
protected abstract List |
getResources(org.apache.maven.project.MavenProject p) |
protected abstract List |
getSources(org.apache.maven.project.MavenProject p) |
protected String |
getType() |
protected void |
packageSources(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 File outputDirectory
protected String finalName
protected List reactorProjects
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected abstract String getClassifier()
sources
or test-sources
protected abstract List getSources(org.apache.maven.project.MavenProject p) throws org.apache.maven.plugin.MojoExecutionException
p
- not nullorg.apache.maven.plugin.MojoExecutionException
protected abstract List getResources(org.apache.maven.project.MavenProject p) throws org.apache.maven.plugin.MojoExecutionException
p
- not nullorg.apache.maven.plugin.MojoExecutionException
protected void packageSources(org.apache.maven.project.MavenProject p) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void packageSources(List projects) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void archiveProjectContent(org.apache.maven.project.MavenProject p, org.codehaus.plexus.archiver.Archiver archiver) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected org.apache.maven.archiver.MavenArchiver createArchiver() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void addDirectory(org.codehaus.plexus.archiver.Archiver archiver, File sourceDirectory, String[] includes, String[] excludes) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void addDirectory(org.codehaus.plexus.archiver.Archiver archiver, File sourceDirectory, String prefix, String[] includes, String[] excludes) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected String getExtension()
protected org.apache.maven.project.MavenProject getProject(org.apache.maven.project.MavenProject p)
protected String getType()
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.