org.apache.maven.plugin.source
public abstract class AbstractJarSourceMojo extends AbstractMojo
Field Summary | |
---|---|
protected String | finalName |
protected File | outputDirectory |
protected String | packaging |
Method Summary | |
---|---|
protected File[] | addDirectories(List compileSourceRoots, List resources, File[] sourceDirectories)
Add the compile source directories and resource directories that will be included in the jar file
|
protected void | attachArtifact(File outputFile, String classifier)
Method to attach generated artifact to artifact list
|
protected void | createJar(File outputFile, File[] sourceDirectories, Archiver archiver)
Create jar file that contains the specified source directories
|
abstract void | execute() |
protected File[] | getDefaultSources()
Get the main sources that will be included in the jar file
|
MavenProject | getExecutedProject() |
String | getPackaging() |
MavenProject | getProject() |
protected File[] | getTestSources()
Get the test sources that will be included in the test sources jar file
|
void | setExecutedProject(MavenProject executedProject) |
void | setPackaging(String packaging) |
void | setProject(MavenProject project) |
UNKNOWN: expression="${project.build.finalName}"
UNKNOWN: expression="${project.build.directory}"
UNKNOWN: expression="${project.packaging}"
Parameters: compileSourceRoots resources sourceDirectories
Returns: an array of File objects that contains the directories that will be included in the jar file
Parameters: outputFile the artifact file to be attached classifier
Parameters: outputFile the file name of the jar sourceDirectories the source directories that will be included in the jar file
Returns: an array of File objects that contains the source directories
Returns: an array of File objects that contains the test source directories