rvazquezglez
rvazquezglez

Reputation: 2454

Scala support in a maven project

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?

Upvotes: 0

Views: 197

Answers (2)

Steven Levine
Steven Levine

Reputation: 3675

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>

Upvotes: 3

mikołak
mikołak

Reputation: 9705

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

Upvotes: 2

Related Questions