public abstract class AbstractTychoPackagingMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
private IncludeValidationHelper |
includeValidationHelper |
protected org.codehaus.plexus.PlexusContainer |
plexus |
protected org.apache.maven.project.MavenProject |
project |
protected org.apache.maven.project.MavenProjectHelper |
projectHelper |
private java.util.Map<java.lang.String,TychoProject> |
projectTypes |
protected java.lang.String |
qualifier
Build qualifier.
|
protected org.apache.maven.execution.MavenSession |
session |
protected boolean |
strictBinIncludes
If set to
true (the default), missing build.properties bin.includes will cause
build failure. |
protected boolean |
useDefaultExcludes |
Constructor and Description |
---|
AbstractTychoPackagingMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkBinIncludesExist(BuildProperties buildProperties,
java.lang.String... ignoredIncludes) |
protected DependencyArtifacts |
getDependencyArtifacts() |
protected ArtifactDependencyWalker |
getDependencyWalker() |
protected org.codehaus.plexus.archiver.FileSet |
getFileSet(java.io.File basedir,
java.util.List<java.lang.String> includes,
java.util.List<java.lang.String> excludes) |
protected TychoProject |
getTychoProjectFacet() |
protected TychoProject |
getTychoProjectFacet(java.lang.String packaging) |
getLog, getPluginContext, setLog, setPluginContext
@Parameter(property="session", readonly=true) protected org.apache.maven.execution.MavenSession session
@Parameter(property="project", readonly=true) protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="true") protected boolean useDefaultExcludes
@Parameter(property="buildQualifier") protected java.lang.String qualifier
@Parameter(defaultValue="true") protected boolean strictBinIncludes
true
(the default), missing build.properties bin.includes will cause
build failure. If set to false
, missing build.properties bin.includes will be
reported as warnings but the build will not fail.@Component protected org.codehaus.plexus.PlexusContainer plexus
@Component protected org.apache.maven.project.MavenProjectHelper projectHelper
@Component(role=TychoProject.class) private java.util.Map<java.lang.String,TychoProject> projectTypes
@Component private IncludeValidationHelper includeValidationHelper
protected org.codehaus.plexus.archiver.FileSet getFileSet(java.io.File basedir, java.util.List<java.lang.String> includes, java.util.List<java.lang.String> excludes)
FileSet
with the given includes and excludes and the configured default
excludes. An empty list of includes leads to an empty file set.protected ArtifactDependencyWalker getDependencyWalker()
protected TychoProject getTychoProjectFacet()
protected TychoProject getTychoProjectFacet(java.lang.String packaging)
protected DependencyArtifacts getDependencyArtifacts()
protected void checkBinIncludesExist(BuildProperties buildProperties, java.lang.String... ignoredIncludes) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException