org.apache.maven.plugin.source
Class SourceJarNoForkMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.source.AbstractSourceJarMojo
org.apache.maven.plugin.source.SourceJarNoForkMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
- Direct Known Subclasses:
- SourceJarMojo
@Mojo(name="jar-no-fork",
defaultPhase=PACKAGE,
threadSafe=true)
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 1355857 2012-07-01 08:03:27Z olamy $
- Author:
- pgier
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classifier
@Parameter(property="maven.source.classifier",
defaultValue="sources")
protected String classifier
- Since:
- 2.2
SourceJarNoForkMojo
public SourceJarNoForkMojo()
getSources
protected List<String> getSources(MavenProject p)
-
- Specified by:
getSources
in class AbstractSourceJarMojo
- Parameters:
p
- not null
- Returns:
- the compile or test sources
getResources
protected List<Resource> getResources(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-2012 The Apache Software Foundation. All Rights Reserved.