Home > maven-mirah-plugin

maven-mirah-plugin

Maven-mirah-plugin is a project mainly written in Java, based on the View license.

Plugin to compile Mirah source with Maven

h2. Maven Mirah Compiler

Plugin to allow to compile Mirah code with Maven.

h3. Usage

Add the plugin to your pom.xml


...
 
    org.mirah.maven
    maven-mirah-plugin
    
      
        compile
        compile
      
    
  
...

Execute @mvn compile@

h3. 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:


...
  
    src/main/mirah
    target/classes
    true
    false
...

h3. 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.

Previous:sshGate-web