Skip to content

calavera/maven-mirah-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>
    <bytecode>true</bytecode>
    <verbose>false</verbose>
...
</plugin>

Compile java and mirah source at once

This plugin extends maven-compiler-plugin so it compiles mirah and java code
at once. We don’t need to add the compiler plugin to our build.

If the option bytecode is set to true, by default, the plugin compiles
the java code before compiling the mirah code, but if we set that option to
false the plugin generates the java source code from the mirah code first
and the compiles all the java source code.

About

Plugin to compile Mirah source with Maven

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages