org.apache.maven.plugin.source
Class SourceJarNoForkMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.source.AbstractSourceJarMojo
          extended by org.apache.maven.plugin.source.SourceJarNoForkMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
SourceJarMojo

public class SourceJarNoForkMojo
extends AbstractSourceJarMojo

This goal bundles all the sources into a jar archive. This goal functions the same as the jar goal but does not fork the build and is suitable for attaching to the build lifecycle.

Since:
2.1
Version:
$Id: SourceJarNoForkMojo.java 753375 2009-03-13 20:06:15Z pgier $
Author:
pgier
Is defined by the goal name:
jar-no-fork
Is bound to the specified phase of the standard build lifecycle:
package

Field Summary
 
Fields inherited from class org.apache.maven.plugin.source.AbstractSourceJarMojo
excludeResources, finalName, includePom, outputDirectory, project, reactorProjects
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
SourceJarNoForkMojo()
           
 
Method Summary
protected  String getClassifier()
          
protected  List getResources(org.apache.maven.project.MavenProject p)
          
protected  List getSources(org.apache.maven.project.MavenProject p)
          
 
Methods inherited from class org.apache.maven.plugin.source.AbstractSourceJarMojo
addDirectory, addDirectory, archiveProjectContent, createArchiver, execute, getExtension, getProject, getType, packageSources, packageSources
 
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
 

Constructor Detail

SourceJarNoForkMojo

public SourceJarNoForkMojo()
Method Detail

getSources

protected List getSources(org.apache.maven.project.MavenProject p)

Specified by:
getSources in class AbstractSourceJarMojo
Parameters:
p - not null
Returns:
the compile or test sources

getResources

protected List getResources(org.apache.maven.project.MavenProject p)

Specified by:
getResources in class AbstractSourceJarMojo
Parameters:
p - not null
Returns:
the compile or test resources

getClassifier

protected String getClassifier()

Specified by:
getClassifier in class AbstractSourceJarMojo
Returns:
the wanted classifier, ie sources or test-sources


Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.