@Mojo(name="plugin-source", defaultPhase=PREPARE_PACKAGE) 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<org.apache.maven.model.Resource> |
getSources(org.apache.maven.project.MavenProject p) |
protected List<org.apache.maven.model.Resource> |
getSources(org.apache.maven.project.MavenProject p,
boolean requireSourceRoots,
BuildProperties buildProperties) |
protected boolean |
isRelevantProject(org.apache.maven.project.MavenProject project) |
protected static boolean |
isRelevantProjectImpl(org.apache.maven.project.MavenProject project,
BuildPropertiesParser buildPropertiesParser) |
protected Properties |
readL10nProps(OsgiManifest manifest) |
protected void |
updateSourceManifest(org.apache.maven.archiver.MavenArchiveConfiguration mavenArchiveConfiguration) |
addDirectory, addDirectory, archiveProjectContent, createArchiver, execute, getExtension, getProject, getType, packageSources, packageSources
@Parameter(defaultValue="true") protected boolean useDefaultSourceExcludes
AbstractScanner#DEFAULTEXCLUDES
should be used.@Parameter(defaultValue="false", readonly=true) protected boolean requireSourceRoots
@Parameter(defaultValue="true") 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<org.apache.maven.model.Resource> 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 List<org.apache.maven.model.Resource> getSources(org.apache.maven.project.MavenProject p, boolean requireSourceRoots, BuildProperties buildProperties) 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 Properties readL10nProps(OsgiManifest manifest) throws org.apache.maven.plugin.MojoExecutionException
org.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–2020 Eclipse Foundation. All rights reserved.