-
-
Save amimimor/40f1838bbdd15cc25b21 to your computer and use it in GitHub Desktop.
POM of project using scalding
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>com.###.####</groupId> | |
<artifactId>####</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<repositories> | |
<repository> | |
<id>maven.org</id> | |
<url>http://repo2.maven.org/maven2/</url> | |
</repository> | |
<repository> | |
<id>scala-tools.org</id> | |
<name>Scala-Tools Maven2 Repository</name> | |
<url>http://scala-tools.org/repo-releases/</url> | |
</repository> | |
<repository> | |
<id>apache.snapshots</id> | |
<name>Apache Snapshot Repository</name> | |
<url>http://repository.apache.org/snapshots</url> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
</repository> | |
</repositories> | |
<dependencies> | |
<dependency> | |
<groupId>org.scala-tools</groupId> | |
<artifactId>maven-scala-plugin</artifactId> | |
<version>2.15.2</version> | |
<type>maven-plugin</type> | |
<exclusions> | |
<exclusion> | |
<artifactId>slf4j-nop</artifactId> | |
<groupId>org.slf4j</groupId> | |
</exclusion> | |
<exclusion> | |
<artifactId>slf4j-jdk14</artifactId> | |
<groupId>org.slf4j</groupId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<!-- locally installed cdh3u2 hadoop-core jar --> | |
<groupId>com.cloudera.hadoop</groupId> | |
<artifactId>hadoop-core</artifactId> | |
<version>0.20.2-cdh3u2</version> | |
</dependency> | |
<dependency> | |
<!-- locally installed jar --> | |
<!-- a scalding built with excluded, among others, hadoop-0.20.2.jar --> | |
<groupId>com.twitter</groupId> | |
<artifactId>scalding-assembly</artifactId> | |
<version>0.5.3.cdh3u2</version> | |
</dependency> | |
</dependencies> | |
<properties> | |
<scala.version>2.9.2</scala.version> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.scala-tools</groupId> | |
<artifactId>maven-scala-plugin</artifactId> | |
<version>2.15.2</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>compile</goal> | |
<goal>testCompile</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<scalaVersion>${scala.version}</scalaVersion> | |
<encoding>${project.build.sourceEncoding}</encoding> | |
<charset>${project.build.sourceEncoding}</charset> | |
<args> | |
<arg>-optimise</arg> | |
<arg>-unchecked</arg> | |
<arg>-deprecation</arg> | |
</args> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<encoding>${project.build.sourceEncoding}</encoding> | |
<source>1.6</source> | |
<target>1.6</target> | |
<optimize>true</optimize> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.9</version> | |
<configuration> | |
<parallel>classes</parallel> | |
<argLine>-Xmx1024m</argLine> | |
<encoding>${project.build.sourceEncoding}</encoding> | |
<forkMode>once</forkMode> | |
<useFile>false</useFile> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-release-plugin</artifactId> | |
<configuration> | |
<preparationGoals>clean verify install</preparationGoals> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<configuration> | |
<finalName>${project.name}-${project.version}</finalName> | |
<appendAssemblyId>true</appendAssemblyId> | |
<descriptors> | |
<descriptor>src/assembly/job.xml</descriptor> | |
</descriptors> | |
<archive> | |
<manifest> | |
<addClasspath>true</addClasspath> | |
</manifest> | |
</archive> | |
</configuration> | |
<executions> | |
<execution> | |
<id>job</id> | |
<phase>package</phase> | |
<goals> | |
<goal>single</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
<pluginManagement> | |
<plugins> | |
<!--This plugin's configuration is used to store Eclipse m2e settings | |
only. It has no influence on the Maven build itself. --> | |
<plugin> | |
<groupId>org.eclipse.m2e</groupId> | |
<artifactId>lifecycle-mapping</artifactId> | |
<version>1.0.0</version> | |
<configuration> | |
<lifecycleMappingMetadata> | |
<pluginExecutions> | |
<pluginExecution> | |
<pluginExecutionFilter> | |
<groupId> | |
org.scala-tools | |
</groupId> | |
<artifactId> | |
maven-scala-plugin | |
</artifactId> | |
<versionRange> | |
[2.15.2,) | |
</versionRange> | |
<goals> | |
<goal>testCompile</goal> | |
</goals> | |
</pluginExecutionFilter> | |
<action> | |
<ignore></ignore> | |
</action> | |
</pluginExecution> | |
</pluginExecutions> | |
</lifecycleMappingMetadata> | |
</configuration> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment