Created
August 15, 2012 17:47
-
-
Save andreaskallberg/3361900 to your computer and use it in GitHub Desktop.
Example maven pom for Scala and Akka
This file contains 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/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>ak</groupId> | |
<artifactId>test-harness</artifactId> | |
<packaging>jar</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<name>Test harness</name> | |
<properties> | |
<scala.version>2.9.2</scala.version> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.scalatest</groupId> | |
<artifactId>scalatest_2.9.2</artifactId> | |
<version>1.6.1</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.8.2</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.scala-lang</groupId> | |
<artifactId>scala-compiler</artifactId> | |
<version>${scala.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.scala-lang</groupId> | |
<artifactId>scala-library</artifactId> | |
<version>${scala.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.typesafe.akka</groupId> | |
<artifactId>akka-actor</artifactId> | |
<version>2.1-20120718-000833</version> | |
</dependency> | |
<dependency> | |
<groupId>com.typesafe.akka</groupId> | |
<artifactId>akka-camel</artifactId> | |
<version>2.1-20120718-000833</version> | |
<exclusions> | |
<exclusion> | |
<groupId>org.apache.camel</groupId> | |
<artifactId>camel-core</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.camel</groupId> | |
<artifactId>camel-jetty</artifactId> | |
<version>2.9.2</version> | |
<!-- type>bundle</type --> | |
</dependency> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-simple</artifactId> | |
<version>1.6.4</version> | |
</dependency> | |
</dependencies> | |
<repositories> | |
<repository> | |
<id>central</id> | |
<name>Maven central</name> | |
<url>http://repo1.maven.org</url> | |
</repository> | |
<repository> | |
<id>scala-tools.org</id> | |
<name>Scala-tools Maven2 Repository</name> | |
<url>http://scala-tools.org/repo-releases</url> | |
</repository> | |
<repository> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> | |
<id>typesafe-releases</id> | |
<name>releases</name> | |
<url>http://repo.typesafe.com/typesafe/releases</url> | |
</repository> | |
<repository> | |
<snapshots /> | |
<id>typesafe-snapshots</id> | |
<name>snapshots</name> | |
<url>http://repo.typesafe.com/typesafe/snapshots</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> | |
<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.0.1</version> | |
</plugin> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<version>2.3</version> | |
<configuration> | |
<archive> | |
<manifest> | |
<mainClass>ak.TestHarnessApp</mainClass> | |
</manifest> | |
</archive> | |
<descriptorRefs> | |
<descriptorRef>jar-with-dependencies</descriptorRef> | |
</descriptorRefs> | |
</configuration> | |
<executions> | |
<execution> | |
<id>make-assembly</id> | |
<phase>package</phase> | |
<goals> | |
<goal>single</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment