Powered by:
SourceForge.net Built by Maven
Sponsored by:
AlphaCSP

CompilerMojo Sample Configuration

Here you can see a CompilerMojo Configuration usage example which compiles java sources:

<plugin>
     <groupId>com.pompom.xx.build</groupId>
     <artifactId>compiler-plugin</artifactId>
     <configuration>
         <packageName>com.pompom.xx</packageName>
         <source>1.2</source>
         <target>1.2</target>
         <executable>${jdk14.home}/bin/javac</executable>
     </configuration>
 </plugin>

CompilerMojo Table of Variables

The variables for CompilerMojo Configuration

Variable Default Description
packageName Empty Package prefix of classes to compile
sourceDependencies -- Used at the beginning to solve circular dependencies
includes -- List of inclusion filter
excludes -- List of exclusion filter
debug true Include debug information
showDeprecation false Output source locations where deprecated APIs are used
fork true Fork the compiler if true
optimize false Optimize compiled code using the compiler's optimization methods
source -- The -source argument for the Java compiler
executable -- The javac executable to use when fork is true