Package org.apache.maven.plugins.source
Class SourceJarNoForkMojo
java.lang.Object
org.apache.maven.plugins.source.AbstractSourceJarMojo
org.apache.maven.plugins.source.SourceJarNoForkMojo
- All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo
- Direct Known Subclasses:
SourceJarMojo
@Mojo(name="jar-no-fork",
defaultPhase="package")
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
- Author:
- pgier
-
Field Summary
FieldsFields inherited from class org.apache.maven.plugins.source.AbstractSourceJarMojo
archive, attach, defaultManifestFile, excludeResources, excludes, finalName, forceCreation, includePom, includes, jarArchiver, log, outputDirectory, outputTimestamp, project, projectManager, reactorProjects, session, skipSource, useDefaultExcludes, useDefaultManifestFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected List
<org.apache.maven.api.model.Resource> getResources
(org.apache.maven.api.Project p) getSources
(org.apache.maven.api.Project p) Methods inherited from class org.apache.maven.plugins.source.AbstractSourceJarMojo
addDirectory, addDirectory, archiveProjectContent, createArchiver, doExecute, execute, getExtension, getLog, getProject, getProject, getType, packageSources, packageSources, setProject
-
Field Details
-
classifier
- Since:
- 2.2
-
-
Constructor Details
-
SourceJarNoForkMojo
public SourceJarNoForkMojo()
-
-
Method Details
-
getSources
- Specified by:
getSources
in classAbstractSourceJarMojo
- Parameters:
p
-Project
not null- Returns:
- the compile or test sources
-
getResources
- Specified by:
getResources
in classAbstractSourceJarMojo
- Parameters:
p
-Project
not null- Returns:
- the compile or test resources
-
getClassifier
- Specified by:
getClassifier
in classAbstractSourceJarMojo
- Returns:
- the wanted classifier, ie
sources
ortest-sources
-