com.sun.enterprise.module.maven
Class HK2CompileMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.AbstractCompilerMojo
          extended by com.sun.enterprise.module.maven.CompilerMojo
              extended by com.sun.enterprise.module.maven.HK2CompileMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
HK2TestCompileMojo

public class HK2CompileMojo
extends CompilerMojo

Replacement of the default javac mojo that uses APT, so that we can not only compile source code but also generate HK2 related metadata at the same time.

Author:
Kohsuke Kawaguchi

Field Summary
 Processor[] processors
          Additional jars that contain annotation processors.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
HK2CompileMojo()
           
 
Method Summary
 void execute()
           
 
Methods inherited from class com.sun.enterprise.module.maven.CompilerMojo
getClasspathElements, 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
 

Field Detail

processors

public Processor[] processors
Additional jars that contain annotation processors.

Constructor Detail

HK2CompileMojo

public HK2CompileMojo()
Method Detail

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 CompilerMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.CompilationFailureException


Copyright © 2012 Oracle Corporation. All Rights Reserved.