|
| 1 | +<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"> |
| 2 | + <modelVersion>4.0.0</modelVersion> |
| 3 | + <groupId>com.sparkapp.scala</groupId> |
| 4 | + <artifactId>sparkCode</artifactId> |
| 5 | + <packaging>jar</packaging> |
| 6 | + |
| 7 | + |
| 8 | + <version>1.0-SNAPSHOT</version> |
| 9 | + <inceptionYear>2008</inceptionYear> |
| 10 | + <properties> |
| 11 | + <scala.version>2.11.6</scala.version> |
| 12 | + </properties> |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + <dependencies> |
| 17 | + <dependency> |
| 18 | + <groupId>org.scala-lang</groupId> |
| 19 | + <artifactId>scala-library</artifactId> |
| 20 | + <version>${scala.version}</version> |
| 21 | + </dependency> |
| 22 | + <dependency> |
| 23 | + <groupId>junit</groupId> |
| 24 | + <artifactId>junit</artifactId> |
| 25 | + <version>4.4</version> |
| 26 | + <scope>test</scope> |
| 27 | + </dependency> |
| 28 | + <dependency> |
| 29 | + <groupId>org.specs</groupId> |
| 30 | + <artifactId>specs</artifactId> |
| 31 | + <version>1.2.5</version> |
| 32 | + <scope>test</scope> |
| 33 | + </dependency> |
| 34 | + <dependency> |
| 35 | + <groupId>org.scala-tools</groupId> |
| 36 | + <artifactId>maven-scala-plugin</artifactId> |
| 37 | + <version>2.11</version> |
| 38 | + </dependency> |
| 39 | + |
| 40 | + <dependency> |
| 41 | + <groupId>org.apache.spark</groupId> |
| 42 | + <artifactId>spark-core_2.11</artifactId> |
| 43 | + <version>2.1.1</version> |
| 44 | + </dependency> |
| 45 | + |
| 46 | + |
| 47 | + <!-- <dependency> |
| 48 | + <groupId>org.apache.spark</groupId> |
| 49 | + <artifactId>spark-sql_2.11</artifactId> |
| 50 | + <version>2.1.1</version> |
| 51 | + </dependency> |
| 52 | +
|
| 53 | + <dependency> |
| 54 | + <groupId>com.databricks</groupId> |
| 55 | + <artifactId>spark-xml_2.11</artifactId> |
| 56 | + <version>0.5.0</version> |
| 57 | + </dependency> |
| 58 | +--> |
| 59 | + |
| 60 | + |
| 61 | + <dependency> |
| 62 | + <groupId>org.apache.kafka</groupId> |
| 63 | + <artifactId>kafka-clients</artifactId> |
| 64 | + <version>0.10.2.1</version> |
| 65 | + </dependency> |
| 66 | + |
| 67 | + </dependencies> |
| 68 | + |
| 69 | + <build> |
| 70 | + <sourceDirectory>src/main/scala</sourceDirectory> |
| 71 | + <testSourceDirectory>src/test/scala</testSourceDirectory> |
| 72 | + <plugins> |
| 73 | + <plugin> |
| 74 | + <groupId>org.scala-tools</groupId> |
| 75 | + <artifactId>maven-scala-plugin</artifactId> |
| 76 | + <executions> |
| 77 | + <execution> |
| 78 | + <goals> |
| 79 | + <goal>compile</goal> |
| 80 | + <goal>testCompile</goal> |
| 81 | + </goals> |
| 82 | + </execution> |
| 83 | + </executions> |
| 84 | + <configuration> |
| 85 | + <scalaVersion>${scala.version}</scalaVersion> |
| 86 | + <args> |
| 87 | + <arg>-target:jvm-1.5</arg> |
| 88 | + </args> |
| 89 | + </configuration> |
| 90 | + </plugin> |
| 91 | + <plugin> |
| 92 | + <groupId>org.apache.maven.plugins</groupId> |
| 93 | + <artifactId>maven-eclipse-plugin</artifactId> |
| 94 | + <configuration> |
| 95 | + <downloadSources>true</downloadSources> |
| 96 | + <buildcommands> |
| 97 | + <buildcommand>ch.epfl.lamp.sdt.core.scalabuilder</buildcommand> |
| 98 | + </buildcommands> |
| 99 | + <additionalProjectnatures> |
| 100 | + <projectnature>ch.epfl.lamp.sdt.core.scalanature</projectnature> |
| 101 | + </additionalProjectnatures> |
| 102 | + <classpathContainers> |
| 103 | + <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer> |
| 104 | + <classpathContainer>ch.epfl.lamp.sdt.launching.SCALA_CONTAINER</classpathContainer> |
| 105 | + </classpathContainers> |
| 106 | + </configuration> |
| 107 | + </plugin> |
| 108 | + |
| 109 | + <plugin> |
| 110 | + <artifactId>maven-assembly-plugin</artifactId> |
| 111 | + <executions> |
| 112 | + <execution> |
| 113 | + <phase>package</phase> |
| 114 | + <goals> |
| 115 | + <goal>single</goal> |
| 116 | + </goals> |
| 117 | + </execution> |
| 118 | + </executions> |
| 119 | + <configuration> |
| 120 | + <descriptorRefs> |
| 121 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 122 | + </descriptorRefs> |
| 123 | + <archive> |
| 124 | + <manifest> |
| 125 | + <mainClass>pakageName.MainClassName</mainClass> |
| 126 | + </manifest> |
| 127 | + </archive> |
| 128 | + </configuration> |
| 129 | + </plugin> |
| 130 | + </plugins> |
| 131 | + </build> |
| 132 | + <reporting> |
| 133 | + <plugins> |
| 134 | + <plugin> |
| 135 | + <groupId>org.scala-tools</groupId> |
| 136 | + <artifactId>maven-scala-plugin</artifactId> |
| 137 | + <configuration> |
| 138 | + <scalaVersion>${scala.version}</scalaVersion> |
| 139 | + </configuration> |
| 140 | + </plugin> |
| 141 | + </plugins> |
| 142 | + </reporting> |
| 143 | +</project> |
0 commit comments