org.ops4j.pax.construct.lifecycle
Class BundleCompilerMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.AbstractCompilerMojo
          extended by org.apache.maven.plugin.CompilerMojo
              extended by org.ops4j.pax.construct.lifecycle.BundleCompilerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class BundleCompilerMojo
extends org.apache.maven.plugin.CompilerMojo

Extends CompilerMojo to support compiling against OSGi bundles with embedded jars.
Inherited parameters can still be used, but unfortunately don't appear in the generated docs.


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
BundleCompilerMojo()
           
 
Method Summary
 void execute()
          
protected  java.util.List getClasspathElements()
          
protected static void mergeCompilerConfiguration(org.apache.maven.plugin.AbstractCompilerMojo mojo, org.apache.maven.project.MavenProject project)
          Copy additional compiler settings from maven-compiler-plugin section (only handles simple configuration items)
 
Methods inherited from class org.apache.maven.plugin.CompilerMojo
getCompileSourceRoots, getOutputDirectory, getSourceInclusionScanner, getSourceInclusionScanner
 
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
 

Constructor Detail

BundleCompilerMojo

public BundleCompilerMojo()
Method Detail

getClasspathElements

protected java.util.List getClasspathElements()

Overrides:
getClasspathElements in class org.apache.maven.plugin.CompilerMojo

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.CompilationFailureException

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class org.apache.maven.plugin.CompilerMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.CompilationFailureException

mergeCompilerConfiguration

protected static void mergeCompilerConfiguration(org.apache.maven.plugin.AbstractCompilerMojo mojo,
                                                 org.apache.maven.project.MavenProject project)
Copy additional compiler settings from maven-compiler-plugin section (only handles simple configuration items)

Parameters:
mojo - compiler mojo
project - maven project


Copyright © 2007-2008 OPS4J. All Rights Reserved.