krakatau-maven-plugin, A plugin for krakatau in maven project.
Use krakatau_java_wrapper to build class from krakatau.
- include it in your
<build>
<build>
<plugins>
<plugin>
<groupId>com.xenoamess</groupId>
<artifactId>krakatau-maven-plugin</artifactId>
<version>0.0.1</version>
<executions>
<execution>
<goals>
<goal>krakatau-compile</goal>
<goal>krakatau-test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
-
write your krakatau source codes. put krakatau source codes into
<sourceDirectory>
-
mvn compile and get the result.
All params and their default value are listed here.
@Parameter(defaultValue = "${basedir}/src/main/krakatau", property = "sourceDir", required = true)
private File sourceDirectory;
@Parameter(defaultValue = "${project.build.directory}/classes", property = "outputDir",
required = true)
private File outputDirectory;
@Parameter(defaultValue = "${project.build.sourceEncoding}", property = "encoding")
private String encoding;
@Parameter(defaultValue = "${project}")
private MavenProject project;
sourceDirectory means a directory which contains your krakatau sources.
outputDirectory means a directory to put compiled results.
encoding means encoding of your source files.
project means your project. I don't think it shall be changed but if you insisted, then you are free to do what you want.