Skip to content
jsuereth edited this page Sep 13, 2010 · 15 revisions

Welcome to the scala-mojo-support wiki! The goal of this project is to provide the ability to write Maven Mojo projects completely in scala.

Example:


@goal("echo")
@phase("process-sources")
class EchoOutputDirectoryMojo extends AbstractMojo {

  @parameter
  @expression("${project.build.directory}")
  var outputDirectory : File = _;

  @parameter
  @expression("${project}")
  @readOnly
  var project : MavenProject = _;


  @throws(classOf[MojoExecutionException])
  override def execute() {
    getLog.error("Hello")
    getLog.error("outputDirectory = " + outputDirectory);//.getAbsolutePath);
  }
}

Project Milestones

This is the list of items we’d like to complete before a 0.1.0 release.

  • Plexus-integration for var injection – Done
  • Plexus-integration for constructor injection
  • Annotation-based Mojo descriptor extraction
    • Single-class
      • var extraction – Done
      • constructor extraction
    • Multi-class (inheritance) extraction
  • Comment/Scaladoc based Nojo descriptor extraction
Clone this wiki locally