public class OsgiSourceMojo extends AbstractSourceJarMojo
Modifier and Type | Field and Description |
---|---|
protected boolean |
requireSourceRoots
Whether source folders are required or not.
|
protected boolean |
strictSrcIncludes
If set to
true (the default), missing build.properties src.includes will cause
build failure. |
protected boolean |
useDefaultSourceExcludes
Whether default source excludes for SCM files defined in
AbstractScanner#DEFAULTEXCLUDES should be used. |
excludeResources, finalName, includePom, outputDirectory, project, reactorProjects
Constructor and Description |
---|
OsgiSourceMojo() |
Modifier and Type | Method and Description |
---|---|
protected String |
getClassifier() |
protected List<org.apache.maven.model.Resource> |
getResources(org.apache.maven.project.MavenProject p) |
protected List<String> |
getSources(org.apache.maven.project.MavenProject p) |
protected static List<String> |
getSources(org.apache.maven.project.MavenProject p,
boolean requireSourceRoots,
BuildPropertiesParser buildPropertiesParser) |
protected boolean |
isRelevantProject(org.apache.maven.project.MavenProject project) |
protected static boolean |
isRelevantProjectImpl(org.apache.maven.project.MavenProject project,
BuildPropertiesParser buildPropertiesParser) |
protected void |
updateSourceManifest(org.apache.maven.archiver.MavenArchiveConfiguration mavenArchiveConfiguration) |
addDirectory, addDirectory, archiveProjectContent, createArchiver, execute, getExtension, getProject, getType, packageSources, packageSources
protected boolean useDefaultSourceExcludes
AbstractScanner#DEFAULTEXCLUDES
should be used.protected boolean requireSourceRoots
protected boolean strictSrcIncludes
true
(the default), missing build.properties src.includes will cause
build failure. If set to false
, missing build.properties src.includes will be
reported as warnings but the build will not fail.protected List<String> getSources(org.apache.maven.project.MavenProject p) throws org.apache.maven.plugin.MojoExecutionException
getSources
in class AbstractSourceJarMojo
p
- not nullorg.apache.maven.plugin.MojoExecutionException
protected static List<String> getSources(org.apache.maven.project.MavenProject p, boolean requireSourceRoots, BuildPropertiesParser buildPropertiesParser) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected List<org.apache.maven.model.Resource> getResources(org.apache.maven.project.MavenProject p) throws org.apache.maven.plugin.MojoExecutionException
getResources
in class AbstractSourceJarMojo
p
- not nullorg.apache.maven.plugin.MojoExecutionException
protected String getClassifier()
getClassifier
in class AbstractSourceJarMojo
sources
or test-sources
protected void updateSourceManifest(org.apache.maven.archiver.MavenArchiveConfiguration mavenArchiveConfiguration)
updateSourceManifest
in class AbstractSourceJarMojo
protected boolean isRelevantProject(org.apache.maven.project.MavenProject project)
isRelevantProject
in class AbstractSourceJarMojo
protected static boolean isRelevantProjectImpl(org.apache.maven.project.MavenProject project, BuildPropertiesParser buildPropertiesParser)
Copyright © 2008-2012 Eclipse Foundation. All Rights Reserved.