I'm testing java code using scala and maven. The maven-scala-plugin is returning a pom file error in Eclipse. Here is my pom snippet :
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<version>2.15.2</version>
<executions>
<execution>
<id>scala-test-compile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
This is the error :
Plugin execution not covered by lifecycle configuration: org.scala-tools:maven-scala-plugin:2.15.2:testCompile
(execution: scala-test-compile, phase: test-compile)
Have I configured the pom correctly ?
The scala tests are running correctly, in that they are all passing. Perhaps this is a Maven bug ?
When I view maven properties for the project the lifecycle mappings are not available :
You should instal m2eclipse-connector from this update site: http://alchim31.free.fr/m2e-scala/update-site
Check this documentation:
http://scala-ide.org/docs/tutorials/m2eclipse/index.html
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