0

I've found a guide to add scala support to a maven project in this link -> http://stuq.nl/weblog/2008-11-26/4-steps-to-add-scala-to-your-maven-java-projects

However, the repositories doesn't exist anymore.

Is there anoter way to add scala support to a maven project? How can can it be done?

2 Answers 2

3

Scala Tools is no more.

Instead try using the scala-maven-plugin:

From their documentation, here is what is needed to get started:

  <build>
    <sourceDirectory>src/main/scala</sourceDirectory>
    <testSourceDirectory>src/test/scala</testSourceDirectory>
    <plugins>
      <plugin>
        <groupId>net.alchim31.maven</groupId>
        <artifactId>scala-maven-plugin</artifactId>
        <version>3.1.5</version>
      </plugin>
    </plugins>
  </build>
2

Use Sonatype's repository and net.alchim31.maven for scala-maven-plugin groupIdinstead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.