Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  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.myCompany.scala</groupId>
  4. <artifactId>sparkExample</artifactId>
  5. <version>1.0-SNAPSHOT</version>
  6. <inceptionYear>2008</inceptionYear>
  7.  
  8.  
  9.  
  10. <properties>
  11. <scala.version>2.11.6</scala.version>
  12. <spark.version>2.3.1</spark.version>
  13. </properties>
  14.  
  15.  
  16.  
  17. <repositories>
  18. <repository>
  19. <id>scala-tools.org</id>
  20. <name>Scala-Tools Maven2 Repository</name>
  21. <url>http://scala-tools.org/repo-releases</url>
  22. </repository>
  23. </repositories>
  24.  
  25.  
  26.  
  27. <pluginRepositories>
  28. <pluginRepository>
  29. <id>scala-tools.org</id>
  30. <name>Scala-Tools Maven2 Repository</name>
  31. <url>http://scala-tools.org/repo-releases</url>
  32. </pluginRepository>
  33. </pluginRepositories>
  34.  
  35.  
  36.  
  37. <dependencies>
  38. <dependency>
  39. <groupId>org.apache.spark</groupId>
  40. <artifactId>spark-core_2.11</artifactId>
  41. <version>${spark.version}</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.spark</groupId>
  45. <artifactId>spark-sql_2.11</artifactId>
  46. <version>${spark.version}</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.spark</groupId>
  50. <artifactId>spark-mllib_2.11</artifactId>
  51. <version>${spark.version}</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.scala-tools</groupId>
  55. <artifactId>maven-scala-plugin</artifactId>
  56. <version>2.11</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.scala-lang</groupId>
  60. <artifactId>scala-library</artifactId>
  61. <version>${scala.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>junit</groupId>
  65. <artifactId>junit</artifactId>
  66. <version>4.4</version>
  67. <scope>test</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.specs</groupId>
  71. <artifactId>specs</artifactId>
  72. <version>1.2.5</version>
  73. <scope>test</scope>
  74. </dependency>
  75. </dependencies>
  76.  
  77.  
  78.  
  79. <build>
  80. <sourceDirectory>src/main/scala</sourceDirectory>
  81. <testSourceDirectory>src/test/scala</testSourceDirectory>
  82. <plugins>
  83. <plugin>
  84. <groupId>org.scala-tools</groupId>
  85. <artifactId>maven-scala-plugin</artifactId>
  86. <executions>
  87. <execution>
  88. <goals>
  89. <goal>compile</goal>
  90. <goal>testCompile</goal>
  91. </goals>
  92. </execution>
  93. </executions>
  94. <configuration>
  95. <scalaVersion>${scala.version}</scalaVersion>
  96. <args>
  97. <arg>-target:jvm-1.5</arg>
  98. </args>
  99. </configuration>
  100. </plugin>
  101. </plugins>
  102. </build>
  103.  
  104.  
  105. <reporting>
  106. <plugins>
  107. <plugin>
  108. <groupId>org.scala-tools</groupId>
  109. <artifactId>maven-scala-plugin</artifactId>
  110. <configuration>
  111. <scalaVersion>${scala.version}</scalaVersion>
  112. </configuration>
  113. </plugin>
  114. </plugins>
  115. </reporting>
  116. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement