Package org.apache.felix.bundleplugin
Class VerifyBundlePlugin
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.felix.bundleplugin.VerifyBundlePlugin
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="verify",
threadSafe=true,
defaultPhase=VERIFY)
public final class VerifyBundlePlugin
extends org.apache.maven.plugin.AbstractMojo
Verifies OSGi bundle metadata contains valid entries.
Supported checks in the current version:
- All packages declared in the Export-Package header are really included in the bundle.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
protected boolean
Whether to fail on errors.private org.apache.maven.project.MavenProject
protected boolean
Flag to easily skip execution.private Pattern
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
EXPORT_PACKAGE
- See Also:
-
skipDirs
-
project
@Component private org.apache.maven.project.MavenProject project -
skip
@Parameter(property="skip", defaultValue="false") protected boolean skipFlag to easily skip execution. -
failOnError
@Parameter(property="failOnError", defaultValue="true") protected boolean failOnErrorWhether to fail on errors.
-
-
Constructor Details
-
VerifyBundlePlugin
public VerifyBundlePlugin()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
checkPackages
- Throws:
org.apache.maven.plugin.MojoExecutionException
-