tesla / m2eclipse-tycho

25 stars 26 forks source link

Using Scala in eclipse-test-plugin #14

Closed satyagraha closed 10 years ago

satyagraha commented 10 years ago

I have developed an Eclipse plugin with separate test plugin in the usual way for Tycho. What I'd like to do is write the tests in Scala (using ScalaTest). However, when I try to import the tests plugin pom with:

<packaging>eclipse-test-plugin</packaging>

then none of the specified Scala source folders are recognized (even the default ones). If I change the packaging to jar, then the import works correctly. However of course the main plugin is not on the classpath so this is not usable as such.

I can do a mvn clean package from the parent command line and all is fine, including compiling and running ScalaTests.

I am using https://github.com/sonatype/m2eclipse-scala as usual for a Scala project.

Any clues on what to do?

satyagraha commented 10 years ago

https://github.com/sonatype/m2eclipse-scala/issues/28#issuecomment-29819495