@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,
org.eclipse.tycho.core.shared.BuildProperties buildProperties) |
protected boolean |
isRelevantProject(org.apache.maven.project.MavenProject project) |
protected static boolean |
isRelevantProjectImpl(org.apache.maven.project.MavenProject project,
org.eclipse.tycho.core.shared.BuildPropertiesParser buildPropertiesParser) |
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 AbstractSourceJarMojop - not nullorg.apache.maven.plugin.MojoExecutionExceptionprotected List<org.apache.maven.model.Resource> getSources(org.apache.maven.project.MavenProject p, boolean requireSourceRoots, org.eclipse.tycho.core.shared.BuildProperties buildProperties) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected List<org.apache.maven.model.Resource> getResources(org.apache.maven.project.MavenProject p) throws org.apache.maven.plugin.MojoExecutionException
getResources in class AbstractSourceJarMojop - not nullorg.apache.maven.plugin.MojoExecutionExceptionprotected String getClassifier()
getClassifier in class AbstractSourceJarMojosources or test-sourcesprotected void updateSourceManifest(org.apache.maven.archiver.MavenArchiveConfiguration mavenArchiveConfiguration)
updateSourceManifest in class AbstractSourceJarMojoprotected boolean isRelevantProject(org.apache.maven.project.MavenProject project)
isRelevantProject in class AbstractSourceJarMojoprotected static boolean isRelevantProjectImpl(org.apache.maven.project.MavenProject project,
org.eclipse.tycho.core.shared.BuildPropertiesParser buildPropertiesParser)
Copyright © 2008-2014 Eclipse Foundation. All Rights Reserved.