Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

maven-scala-plugin giving pom file error

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 : enter image description here

like image 317
blue-sky Avatar asked Nov 16 '12 12:11

blue-sky


1 Answers

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

like image 90
user2635460 Avatar answered Oct 31 '22 17:10

user2635460