ScalaDocMojo should execute generate-sources, not generate-resources, close #397
ScalaDocMojo should execute generate-sources, not generate-resources, close #397

Motivation:

scala:doc should work the same way as javadoc:javadoc and execute `generate-sources` phase.

https://github.com/davidB/scala-maven-plugin/commit/d9f45d0dae6955b459367b11f97305d2ec2bad75 introduced a regression when migrating to Java 5 annotations.

Modification:

Fix ScalaDocMojo to execute LifecyclePhase.GENERATE_SOURCES.

Result:

scala:doc executes correct maven lifecycle phase.

davidB/scala-maven-plugin,davidB/scala-maven-plugin