|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.maven.plugin.source.AbstractSourceJarMojo
public abstract class AbstractSourceJarMojo
Base class for bundling sources into a jar archive.
Field Summary | |
---|---|
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. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractSourceJarMojo()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.maven.project.MavenProject project
protected boolean excludeResources
protected boolean includePom
protected File outputDirectory
protected String finalName
protected List reactorProjects
Constructor Detail |
---|
public AbstractSourceJarMojo()
Method Detail |
---|
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 null
org.apache.maven.plugin.MojoExecutionException
protected abstract List getResources(org.apache.maven.project.MavenProject p) throws org.apache.maven.plugin.MojoExecutionException
p
- not null
org.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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |