-
Notifications
You must be signed in to change notification settings - Fork 10
Home
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);
}
}
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
- Single-class
- Comment/Scaladoc based Nojo descriptor extraction