@Mojo(name="source-feature",
defaultPhase=PACKAGE)
public class SourceFeatureMojo
extends org.apache.maven.plugin.AbstractMojo
eclipse-feature
. By
default, the generated source feature
<originalFeatureId>.source
"<originalFeatureLabel> Developer Resources"
.source
appended to each plugin id.source
appended to each feature idsourceTemplateFeature/
. Files added here will be added to the root of the source
feature jar. Especially, if file sourceTemplateFeature/feature.properties
is found,
values in this file override values of respective keys in
<originalFeature>/feature.properties
.Modifier and Type | Field and Description |
---|---|
static String |
FEATURE_TEMPLATE_DIR |
static String |
SOURCES_FEATURE_CLASSIFIER |
protected boolean |
useDefaultExcludes |
Constructor and Description |
---|
SourceFeatureMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPlugin(Feature sourceFeature,
P2ResolutionResult result,
PluginRef pluginRef) |
void |
execute() |
protected org.codehaus.plexus.archiver.FileSet |
getFileSet(File basedir,
List<String> includes,
List<String> excludes) |
protected File |
getOutputJarFile() |
void |
setExcludes(org.codehaus.plexus.configuration.PlexusConfiguration excludes) |
void |
setPlugins(org.codehaus.plexus.configuration.PlexusConfiguration bundles) |
protected String |
toStrictVersionRange(String version) |
public static final String FEATURE_TEMPLATE_DIR
public static final String SOURCES_FEATURE_CLASSIFIER
@Parameter(defaultValue="true") protected boolean useDefaultExcludes
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void addPlugin(Feature sourceFeature, P2ResolutionResult result, PluginRef pluginRef)
protected File getOutputJarFile()
public void setExcludes(org.codehaus.plexus.configuration.PlexusConfiguration excludes)
public void setPlugins(org.codehaus.plexus.configuration.PlexusConfiguration bundles)
Copyright © 2008–2020 Eclipse Foundation. All rights reserved.