sonatype / m2eclipse-scala

108 stars 48 forks source link

SCALA Container still not being detected from Maven plugin #44

Open eliasbalasis opened 6 years ago

eliasbalasis commented 6 years ago

Using Eclipse Oxygen.1 SCALA IDE 4.7.0 Maven Integration for Scala IDE 0.5.1.201410131304 m2e - Maven Integration for Eclipse 1.8.2.20171007-0217 Java 8 importing a Maven project containing <plugin> <groupId>net.alchim31.maven</groupId> <artifactId>scala-maven-plugin</artifactId> <version>3.3.1</version> <executions> <execution> <goals> <goal>compile</goal> <goal>testCompile</goal> </goals> </execution> </executions> <configuration> <scalaVersion>2.11.11</scalaVersion> <scalaCompatVersion>2.11</scalaCompatVersion> </configuration> </plugin>

the detected SCALA Container in Eclipse imported project is 2.12.3 conflicting with Maven dependencies (cross-compilation issue) while 2.11.11 was expected

Any thoughts?

davidB commented 6 years ago

the m2eclipse-scala plugin is not able to set the version of scala-library. It was a limitation of the scala-plugin, when the m2eclipse-scala was made. I don't know if scala-plugin allow today (programmatically).

eliasbalasis commented 6 years ago

I suspect you mean Scala IDE limitation.

I am using latest version of Scala IDE and it is still not working, I guess support for detection is still missing from Scala IDE.

Any direction? chase this with Scala IDE team perhaps?

davidB commented 6 years ago

Yes, you can try to contact the scala IDE team. I guess there are some change since my latest commit in this project, and the last time I check with Scala IDE team (~2014).

eliasbalasis commented 6 years ago

That could be a starting point.

I assume then that if there is support for detection/assignment in later versions of Scala IDE you would have to implement it in m2eclipse-scala?