Class AbstractOsgiCompilerMojo

    • Field Detail

      • RULE_SEPARATOR

        public static final String RULE_SEPARATOR
      • RULE_EXCLUDE_ALL

        public static final String RULE_EXCLUDE_ALL
        Exclude all but keep looking for other another match
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractOsgiCompilerMojo

        public AbstractOsgiCompilerMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class AbstractCompilerMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • getEclipsePluginProject

        public EclipsePluginProject getEclipsePluginProject()
                                                     throws org.apache.maven.plugin.MojoExecutionException
        public for testing purposes
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getCompileSourceRoots

        protected final List<String> getCompileSourceRoots()
                                                    throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        getCompileSourceRoots in class AbstractCompilerMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getCompilerConfiguration

        protected org.codehaus.plexus.compiler.CompilerConfiguration getCompilerConfiguration​(List<String> compileSourceRoots)
                                                                                       throws org.apache.maven.plugin.MojoExecutionException,
                                                                                              org.apache.maven.plugin.MojoFailureException
        Overrides:
        getCompilerConfiguration in class AbstractCompilerMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • getSourceLevel

        public String getSourceLevel()
                              throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        getSourceLevel in interface JavaCompilerConfiguration
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getTargetLevel

        public String getTargetLevel()
                              throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        getTargetLevel in interface JavaCompilerConfiguration
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getTargetLevel

        public String getTargetLevel​(ExecutionEnvironment ee)
                              throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException