How do I find the correct Maven archetype project for developing with Scala in Eclipse?

前端 未结 4 1683
伪装坚强ぢ
伪装坚强ぢ 2020-12-23 14:54

I\'m having problems trying to just create a Maven project using Scala (v2.11.6) within Eclipse (Luna). The instructions here says to install both plugins below.

    <
4条回答
  •  一整个雨季
    2020-12-23 15:34

    I faced the same problem and chanced upon this SO question, as well as the answer, given by @peeskillet (many thanks). I am using:

    • Maven 3.3.3
    • Eclipse Luna Scala IDE 4.0.0.-vfinal-20150305-1644-Typesafe
    • Scala 2.11.6
    • JDK 1.8

    After following the steps exactly as given here, I hit a wall. When I chose the right archetype (net.alchim31.maven), I was greeted with this error: Could not resolve artifact net.alchim31.maven:scala-archetype-simple:pom:1.5 Suspecting that the maven embedded in eclipse was acting funny, I visited [Windows] -> [Maven] -> [Installations] and added local installation of maven (whatever is set to M2_HOME in my shell). But, no luck!

    Exasperated, I visited this site: Scala Doc and switched back to command-line as this page instructs. Surprisingly (to me, at least), it worked. A maven-Scala project was created in the present directory, which I could import into Eclipse.

    Just so that I am not misunderstood, I am not suggesting that @peeskillet's answer is wrong. Just wanted to share another way of creating a maven-scala project on Eclipse, in case it helps someone. I have not yet understood, why Eclipse-Scala-IDE is yet to give that 'Aha' feeling.

提交回复
热议问题