| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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  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(MavenProject p,
                      org.codehaus.plexus.archiver.Archiver archiver)
 | 
protected  MavenArchiver | 
createArchiver()
 | 
 void | 
execute()
 | 
protected abstract  String | 
getClassifier()
 | 
protected  String | 
getExtension()
 | 
protected  MavenProject | 
getProject(MavenProject p)
 | 
protected abstract  List<Resource> | 
getResources(MavenProject p)
 | 
protected abstract  List<String> | 
getSources(MavenProject p)
 | 
protected  String | 
getType()
 | 
protected  void | 
packageSources(List<MavenProject> projects)
 | 
protected  void | 
packageSources(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 | 
|---|
@Parameter(defaultValue="${project}",
           readonly=true,
           required=true)
protected MavenProject project
@Parameter(property="source.excludeResources",
           defaultValue="false")
protected boolean excludeResources
@Parameter(property="source.includePom",
           defaultValue="false")
protected boolean includePom
@Parameter(defaultValue="${project.build.directory}")
protected File outputDirectory
@Parameter(defaultValue="${project.build.finalName}")
protected String finalName
@Parameter(defaultValue="${reactorProjects}",
           readonly=true)
protected List reactorProjects
| Constructor Detail | 
|---|
public AbstractSourceJarMojo()
| Method Detail | 
|---|
public void execute()
             throws MojoExecutionException
MojoExecutionExceptionprotected abstract String getClassifier()
sources or test-sources
protected abstract List<String> getSources(MavenProject p)
                                    throws MojoExecutionException
p - not null
MojoExecutionException
protected abstract List<Resource> getResources(MavenProject p)
                                        throws MojoExecutionException
p - not null
MojoExecutionException
protected void packageSources(MavenProject p)
                       throws MojoExecutionException
MojoExecutionException
protected void packageSources(List<MavenProject> projects)
                       throws MojoExecutionException
MojoExecutionException
protected void archiveProjectContent(MavenProject p,
                                     org.codehaus.plexus.archiver.Archiver archiver)
                              throws MojoExecutionException
MojoExecutionException
protected MavenArchiver createArchiver()
                                throws MojoExecutionException
MojoExecutionException
protected void addDirectory(org.codehaus.plexus.archiver.Archiver archiver,
                            File sourceDirectory,
                            String[] includes,
                            String[] excludes)
                     throws MojoExecutionException
MojoExecutionException
protected void addDirectory(org.codehaus.plexus.archiver.Archiver archiver,
                            File sourceDirectory,
                            String prefix,
                            String[] includes,
                            String[] excludes)
                     throws MojoExecutionException
MojoExecutionExceptionprotected String getExtension()
protected MavenProject getProject(MavenProject p)
protected String getType()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||