Plugin to compile Mirah source with Maven
Java
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main/java/org/mirah/maven
.gitignore
LICENSE
README.textile
pom.xml

README.textile

Maven Mirah Compiler

Plugin to allow to compile Mirah code with Maven.

Usage

  1. Add the plugin to your pom.xml
<build>
...
 <plugin>
    <groupId>org.mirah.maven</groupId>
    <artifactId>maven-mirah-plugin</artifactId>
    <executions>
      <execution>
        <phase>compile</phase>
        <goals><goal>compile</goal></goals>
      </execution>
    </executions>
  </plugin>
...
</build>
  1. Execute mvn compile

Configuration options

Those are the options that can be modified for this plugin, this example shows the
default ones so we just need to modify them into the plugin declaration:

<plugin>
...
  <configuration>
    <sourceDirectory>src/main/mirah</sourceDirectory>
    <outputDirectory>target/classes</outputDirectory>
    <verbose>false</verbose>
...
</plugin>

Generating java code

If you want the plugin to generate java source files from mirah files instead
of compiling your mirah code directly to bytecode, use the generate-sources
phase instead. The resulting java source files will then be compiled by the
normal maven compiler.