Skip to content

krakatau-maven-plugin, A plugin for krakatau in maven project.

License

Notifications You must be signed in to change notification settings

XenoAmess/krakatau-maven-plugin

Repository files navigation

krakatau-maven-plugin

Maven Central

krakatau-maven-plugin, A plugin for krakatau in maven project.

Goal:

Use krakatau_java_wrapper to build class from krakatau.

Usage:

  1. 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>
  1. write your krakatau source codes. put krakatau source codes into <sourceDirectory>

  2. mvn compile and get the result.

Params:

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.

About

krakatau-maven-plugin, A plugin for krakatau in maven project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages