pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>org.example</groupId>
  7. <artifactId>jiaoke_dataextract</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <!-- <repositories>
  10. <repository>
  11. <id>cloudera-releases</id>
  12. <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
  13. <releases>
  14. <enabled>true</enabled>
  15. </releases>
  16. <snapshots>
  17. <enabled>false</enabled>
  18. </snapshots>
  19. </repository>
  20. </repositories>-->
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.scala-lang</groupId>
  24. <artifactId>scala-library</artifactId>
  25. <version>2.11.8</version>
  26. <!-- <scope>provided</scope>-->
  27. </dependency>
  28. <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common -->
  29. <!-- <dependency>
  30. <groupId>org.apache.hadoop</groupId>
  31. <artifactId>hadoop-common</artifactId>
  32. <version>3.0.0-cdh6.3.1</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.apache.hadoop</groupId>
  36. <artifactId>hadoop-client</artifactId>
  37. <version>3.0.0-cdh6.3.1</version>
  38. </dependency>
  39. &lt;!&ndash; https://mvnrepository.com/artifact/org.apache.hive/hive-jdbc &ndash;&gt;
  40. <dependency>
  41. <groupId>org.apache.hive</groupId>
  42. <artifactId>hive-jdbc</artifactId>
  43. <version>2.1.1-cdh6.3.1</version>
  44. </dependency>-->
  45. <!-- https://mvnrepository.com/artifact/org.apache.spark/spark-core -->
  46. <dependency>
  47. <groupId>org.apache.spark</groupId>
  48. <artifactId>spark-core_2.11</artifactId>
  49. <version>2.3.1</version>
  50. <!-- <scope>provided</scope>-->
  51. </dependency>
  52. <!-- https://mvnrepository.com/artifact/org.apache.spark/spark-core -->
  53. <dependency>
  54. <groupId>org.apache.spark</groupId>
  55. <artifactId>spark-sql_2.11</artifactId>
  56. <version>2.3.1</version>
  57. <!-- <scope>provided</scope>-->
  58. </dependency>
  59. <!--
  60. &lt;!&ndash; https://mvnrepository.com/artifact/org.apache.spark/spark-core &ndash;&gt;
  61. <dependency>
  62. <groupId>org.apache.spark</groupId>
  63. <artifactId>spark-core_2.11</artifactId>
  64. <version>2.4.0-cdh6.3.1</version>
  65. </dependency>
  66. &lt;!&ndash; https://mvnrepository.com/artifact/org.apache.spark/spark-core &ndash;&gt;
  67. <dependency>
  68. <groupId>org.apache.spark</groupId>
  69. <artifactId>spark-sql_2.11</artifactId>
  70. <version>2.4.0-cdh6.3.1</version>
  71. </dependency>
  72. -->
  73. </dependencies>
  74. <build>
  75. <sourceDirectory>src/main/scala</sourceDirectory>
  76. <testSourceDirectory>src/test/scala</testSourceDirectory>
  77. <plugins>
  78. <plugin>
  79. <groupId>net.alchim31.maven</groupId>
  80. <artifactId>scala-maven-plugin</artifactId>
  81. <version>3.2.0</version>
  82. <executions>
  83. <execution>
  84. <goals>
  85. <goal>compile</goal>
  86. <goal>testCompile</goal>
  87. </goals>
  88. <configuration>
  89. <args>
  90. <arg>-dependencyfile</arg>
  91. <arg>${project.build.directory}/.scala_dependencies</arg>
  92. </args>
  93. </configuration>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-shade-plugin</artifactId>
  100. <version>2.3</version>
  101. <executions>
  102. <execution>
  103. <phase>package</phase>
  104. <goals>
  105. <goal>shade</goal>
  106. </goals>
  107. <configuration>
  108. <filters>
  109. <filter>
  110. <artifact>*:*</artifact>
  111. <excludes>
  112. <exclude>META-INF/*.SF</exclude>
  113. <exclude>META-INF/*.DSA</exclude>
  114. <exclude>META-INF/*.RSA</exclude>
  115. </excludes>
  116. </filter>
  117. </filters>
  118. <transformers>
  119. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  120. <mainClass></mainClass>
  121. </transformer>
  122. </transformers>
  123. </configuration>
  124. </execution>
  125. </executions>
  126. </plugin>
  127. </plugins>
  128. </build>
  129. </project>