Guest User

pom.xml

a guest
May 16th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.71 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  4. http://maven.apache.org/maven-v4_0_0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>it.cedint</groupId>
  7. <artifactId>test-spark</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9.  
  10. <properties>
  11. <encoding>UTF-8</encoding>
  12. <scala.version.major>2.11</scala.version.major>
  13. <scala.version.minor>8</scala.version.minor>
  14. <scala.version>${scala.version.major}.${scala.version.minor}</scala.version>
  15. <spark.version>2.3.0</spark.version>
  16. <hbase.version>2.1.4</hbase.version>
  17. <junit.version>4.4</junit.version>
  18. <scala.plugin.version>2.15.2</scala.plugin.version>
  19. <maven-surefire.plugin.version>2.22.1</maven-surefire.plugin.version>
  20. <hadoop.home.arg>-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl</hadoop.home.arg>
  21. <xml.parser.factory.arg>-Dhadoop.home.dir=${basedir}/src/main/resources/hadoop/</xml.parser.factory.arg>
  22. </properties>
  23.  
  24. <repositories>
  25. <repository>
  26. <id>hortonworks</id>
  27. <url>http://repo.hortonworks.com/content/repositories/releases/</url>
  28. </repository>
  29. </repositories>
  30.  
  31. <dependencies>
  32. <dependency>
  33. <groupId>org.scala-lang</groupId>
  34. <artifactId>scala-library</artifactId>
  35. <version>${scala.version}</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.spark</groupId>
  39. <artifactId>spark-sql_${scala.version.major}</artifactId>
  40. <version>${spark.version}</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>junit</groupId>
  44. <artifactId>junit</artifactId>
  45. <version>${junit.version}</version>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.hbase</groupId>
  50. <artifactId>hbase-client</artifactId>
  51. <version>${hbase.version}</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.hbase</groupId>
  55. <artifactId>hbase-server</artifactId>
  56. <version>${hbase.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.hbase</groupId>
  60. <artifactId>hbase-common</artifactId>
  61. <version>${hbase.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.hortonworks.shc</groupId>
  65. <artifactId>shc-core</artifactId>
  66. <version>1.1.0.3.1.2.0-4</version>
  67. </dependency>
  68. </dependencies>
  69.  
  70. <build>
  71. <sourceDirectory>src/main/scala</sourceDirectory>
  72. <testSourceDirectory>src/test/scala</testSourceDirectory>
  73.  
  74. <resources>
  75. <resource>
  76. <directory>${basedir}/src/main/resources</directory>
  77. <filtering>true</filtering>
  78. </resource>
  79. </resources>
  80.  
  81. <testResources>
  82. <testResource>
  83. <directory>${basedir}/src/test/resources</directory>
  84. <filtering>true</filtering>
  85. </testResource>
  86. </testResources>
  87.  
  88. <plugins>
  89. <plugin>
  90. <groupId>org.scala-tools</groupId>
  91. <artifactId>maven-scala-plugin</artifactId>
  92. <version>${scala.plugin.version}</version>
  93. <executions>
  94. <execution>
  95. <goals>
  96. <goal>compile</goal>
  97. </goals>
  98. </execution>
  99. </executions>
  100. <configuration>
  101. <checkMultipleScalaVersions>false</checkMultipleScalaVersions>
  102. <scalaVersion>${scala.version}</scalaVersion>
  103. <mainClass>DDSJob</mainClass>
  104. <jvmArgs>
  105. <jvmArg>${hadoop.home.arg}</jvmArg>
  106. <jvmArg>${xml.parser.factory.arg}</jvmArg>
  107. </jvmArgs>
  108. </configuration>
  109. </plugin>
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-surefire-plugin</artifactId>
  113. <version>${maven-surefire.plugin.version}</version>
  114. <configuration>
  115. <argLine>${hadoop.home.arg} ${xml.parser.factory.arg}</argLine>
  116. </configuration>
  117. </plugin>
  118. </plugins>
  119. </build>
  120. </project>
Advertisement
Add Comment
Please, Sign In to add comment