I try to write a simple maven2 plugin in Scala just like in Java, but fail. It seams that the specific javadoc takes no effect in Scala environment. Is is unable to write maven2 plugin in Scala, since the official maven-scala-plugin is also written in Java ?
Josh Suereth has a couple of blog posts describing how to write Maven plugins (with Maven's awful Javadoc annotations) in Scala.
It's an impressive bit of work, but complicated, and when I've written Maven plugins in Scala I've taken the much simpler approach of having a very thin Java class (with not much more than the private fields and their Javadoc annotations) that extends a Scala class where all the real code lives. It's not very elegant, but it works and is reasonably straightforward.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With