I tried to import m2eclipse-scala sample projects available on
https://github.com/sonatype/m2eclipse-scala/tree/master/samples in
Eclipse Indigo, with Eclipse-IDE 2.0.0-beta8, m2e
1.0.0.20110607-2117 and m2e-scala 0.3.0 installed.
When importing prj-custom-layout and prj-scala-cycle-java , I see the
dreaded "Plugin execution not covered by lifecycle configuration:
org.scala-tools:maven-scala-plugin:2.13.1:add-source (execution:
scala-compile-first, phase: process-resources)"
Adding the following in the pom.xml <build> section remove the error
message, but I understood that it was not what is expected:
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<versionRange>[0.1,)</versionRange>
<goals>
<goal>add-source</goal>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
<configurator>
<id>org.maven.ide.eclipse.scala</id>
</configurator>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Hope it helps,
--
Francois ARMAND
http://fanf42.blogspot.com
http://www.normation.com
One project for Scala, one project for Java. Forget mixed Scala/Java in a
single project unless you want to lose a couple of months of developer time.
Bryan
Given that the sample pom.xml is broken, what's the proper way to do mixed Java/Scala projects with m2eclipse-scala currently?
Bryan, thanks for your clear answer (and stopping me while I had only
wasted a few hours). :)
I'll follow your advice and wait for things to shake up with Scala IDE
before trying again.
Thanks David, I will test that in a near future. And I'm quite happy
that you found some time to work again on all that stuff of yours, I'm
daily grateful for all of it.
Thanks,
--
Francois Armand
http://fanf42.blogspot.com