Created
September 6, 2011 06:34
-
-
Save lobster1234/1196756 to your computer and use it in GitHub Desktop.
Maven pom.xml compatible with Scala 2.9.1 with updated dependency versions. This is needed because the archetype:generate for scala-archetype-simple will be 2.8 and the tests will fail with 2.9.1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>net.manish</groupId> | |
<artifactId>scala-simple</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<name>${project.artifactId}</name> | |
<description>My wonderfull scala app</description> | |
<inceptionYear>2010</inceptionYear> | |
<licenses> | |
<license> | |
<name>My License</name> | |
<url>http://....</url> | |
<distribution>repo</distribution> | |
</license> | |
</licenses> | |
<properties> | |
<maven.compiler.source>1.5</maven.compiler.source> | |
<maven.compiler.target>1.5</maven.compiler.target> | |
<encoding>UTF-8</encoding> | |
<scala.version>2.9.1</scala.version> | |
</properties> | |
<repositories> | |
<repository> | |
<id>scala-tools.org</id> | |
<name>Scala-Tools Maven2 Repository</name> | |
<url>http://scala-tools.org/repo-releases</url> | |
</repository> | |
</repositories> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>scala-tools.org</id> | |
<name>Scala-Tools Maven2 Repository</name> | |
<url>http://scala-tools.org/repo-releases</url> | |
</pluginRepository> | |
</pluginRepositories> | |
<dependencies> | |
<dependency> | |
<groupId>org.scala-lang</groupId> | |
<artifactId>scala-library</artifactId> | |
<version>${scala.version}</version> | |
</dependency> | |
<!-- Test --> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.8.1</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.scala-tools.testing</groupId> | |
<artifactId>specs_${scala.version}</artifactId> | |
<version>1.6.9</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.scalatest</groupId> | |
<artifactId>scalatest_${scala.version}</artifactId> | |
<version>1.6.1</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<sourceDirectory>src/main/scala</sourceDirectory> | |
<testSourceDirectory>src/test/scala</testSourceDirectory> | |
<plugins> | |
<plugin> | |
<groupId>org.scala-tools</groupId> | |
<artifactId>maven-scala-plugin</artifactId> | |
<version>2.15.0</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>compile</goal> | |
<goal>testCompile</goal> | |
</goals> | |
<configuration> | |
<args> | |
<arg>-make:transitive</arg> | |
<arg>-dependencyfile</arg> | |
<arg>${project.build.directory}/.scala_dependencies</arg> | |
</args> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.6</version> | |
<configuration> | |
<useFile>false</useFile> | |
<disableXmlReport>true</disableXmlReport> | |
<!-- If you have classpath issue like NoDefClassError,... --> | |
<!-- useManifestOnlyJar>false</useManifestOnlyJar --> | |
<includes> | |
<include>**/*Test.*</include> | |
<include>**/*Suite.*</include> | |
</includes> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you, you just spared me some work :)