Package org.apache.maven.plugins.source
Class SourceJarNoForkMojo
- java.lang.Object
- 
- org.apache.maven.plugin.AbstractMojo
- 
- org.apache.maven.plugins.source.AbstractSourceJarMojo
- 
- org.apache.maven.plugins.source.SourceJarNoForkMojo
 
 
 
- 
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled,- org.apache.maven.plugin.Mojo
 - Direct Known Subclasses:
- SourceJarMojo
 
 @Mojo(name="jar-no-fork", defaultPhase=PACKAGE, threadSafe=true) public class SourceJarNoForkMojo extends AbstractSourceJarMojoThis 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
- Author:
- pgier
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected Stringclassifier- 
Fields inherited from class org.apache.maven.plugins.source.AbstractSourceJarMojoexcludeResources, finalName, includePom, outputDirectory, reactorProjects
 
- 
 - 
Constructor SummaryConstructors Constructor Description SourceJarNoForkMojo()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetClassifier()protected List<org.apache.maven.model.Resource>getResources(org.apache.maven.project.MavenProject p)protected List<String>getSources(org.apache.maven.project.MavenProject p)- 
Methods inherited from class org.apache.maven.plugins.source.AbstractSourceJarMojoaddDirectory, addDirectory, archiveProjectContent, createArchiver, execute, getExtension, getProject, getProject, getType, packageSources, packageSources, setProject
 
- 
 
- 
- 
- 
Field Detail- 
classifier@Parameter(property="maven.source.classifier", defaultValue="sources") protected String classifier- Since:
- 2.2
 
 
- 
 - 
Method Detail- 
getSourcesprotected List<String> getSources(org.apache.maven.project.MavenProject p) - Specified by:
- getSourcesin class- AbstractSourceJarMojo
- Parameters:
- p-- MavenProjectnot null
- Returns:
- the compile or test sources
 
 - 
getResourcesprotected List<org.apache.maven.model.Resource> getResources(org.apache.maven.project.MavenProject p) - Specified by:
- getResourcesin class- AbstractSourceJarMojo
- Parameters:
- p-- MavenProjectnot null
- Returns:
- the compile or test resources
 
 - 
getClassifierprotected String getClassifier() - Specified by:
- getClassifierin class- AbstractSourceJarMojo
- Returns:
- the wanted classifier, ie sourcesortest-sources
 
 
- 
 
-