Class 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

      Fields 
      Modifier and Type Field Description
      private static java.lang.String EXPORT_PACKAGE  
      protected boolean failOnError
      Whether to fail on errors.
      private org.apache.maven.project.MavenProject project  
      protected boolean skip
      Flag to easily skip execution.
      private java.util.regex.Pattern skipDirs  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.util.Set<java.lang.String> checkPackages()  
      void execute()  
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • skipDirs

        private java.util.regex.Pattern skipDirs
      • project

        @Component
        private org.apache.maven.project.MavenProject project
      • skip

        @Parameter(property="skip",
                   defaultValue="false")
        protected boolean skip
        Flag to easily skip execution.
      • failOnError

        @Parameter(property="failOnError",
                   defaultValue="true")
        protected boolean failOnError
        Whether to fail on errors.
    • Constructor Detail

      • VerifyBundlePlugin

        public VerifyBundlePlugin()
    • Method Detail

      • 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

        private java.util.Set<java.lang.String> checkPackages()
                                                       throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException