pom.xml 5.8 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>ClearTitleSignal</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <maven.compiler.source>8</maven.compiler.source>
  11. <maven.compiler.target>8</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>com.huaban</groupId>
  17. <artifactId>jieba-analysis</artifactId>
  18. <version>1.0.2</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>com.aliyun.odps</groupId>
  22. <artifactId>odps-sdk-core</artifactId>
  23. <version>0.45.6-public</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.aliyun.odps</groupId>
  27. <artifactId>odps-sdk-udf</artifactId>
  28. <version>0.36.4-public</version>
  29. <scope>provided</scope>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.aliyun.odps</groupId>
  33. <artifactId>odps-udf-example</artifactId>
  34. <version>0.30.8-public</version>
  35. <scope>provided</scope>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.alibaba</groupId>
  39. <artifactId>fastjson</artifactId>
  40. <version>1.2.83</version>
  41. <scope>provided</scope>
  42. </dependency>
  43. </dependencies>
  44. <build>
  45. <plugins>
  46. <plugin>
  47. <groupId>org.apache.maven.plugins</groupId>
  48. <artifactId>maven-shade-plugin</artifactId>
  49. <version>3.2.4</version>
  50. <executions>
  51. <execution>
  52. <phase>package</phase>
  53. <goals>
  54. <goal>shade</goal>
  55. </goals>
  56. <configuration>
  57. <relocations>
  58. <relocation>
  59. <pattern>com.google.protobuf</pattern>
  60. <shadedPattern>shaded.com.google.protobuf</shadedPattern>
  61. </relocation>
  62. </relocations>
  63. <minimizeJar>false</minimizeJar>
  64. <shadedArtifactAttached>true</shadedArtifactAttached>
  65. <artifactSet>
  66. <includes>
  67. <!-- Include here the dependencies you
  68. want to be packed in your fat jar -->
  69. <include>*:*</include>
  70. </includes>
  71. </artifactSet>
  72. <filters>
  73. <filter>
  74. <artifact>*:*</artifact>
  75. <excludes>
  76. <exclude>META-INF/*.SF</exclude>
  77. <exclude>META-INF/*.DSA</exclude>
  78. <exclude>META-INF/*.RSA</exclude>
  79. <exclude>**/log4j.properties</exclude>
  80. </excludes>
  81. </filter>
  82. </filters>
  83. <transformers>
  84. <transformer
  85. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  86. <resource>reference.conf</resource>
  87. </transformer>
  88. <transformer
  89. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  90. <resource>
  91. META-INF/services/org.apache.spark.sql.sources.DataSourceRegister
  92. </resource>
  93. </transformer>
  94. </transformers>
  95. </configuration>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. <plugin>
  100. <groupId>net.alchim31.maven</groupId>
  101. <artifactId>scala-maven-plugin</artifactId>
  102. <version>3.3.2</version>
  103. <executions>
  104. <execution>
  105. <id>scala-compile-first</id>
  106. <phase>process-resources</phase>
  107. <goals>
  108. <goal>compile</goal>
  109. </goals>
  110. </execution>
  111. <execution>
  112. <id>scala-test-compile-first</id>
  113. <phase>process-test-resources</phase>
  114. <goals>
  115. <goal>testCompile</goal>
  116. </goals>
  117. </execution>
  118. </executions>
  119. </plugin>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-compiler-plugin</artifactId>
  123. <version>3.8.1</version>
  124. <configuration>
  125. <source>1.8</source>
  126. <target>1.8</target>
  127. <!--<compilerId>scala</compilerId>-->
  128. <!-- <compilerVersion>2.12.10</compilerVersion>-->
  129. </configuration>
  130. </plugin>
  131. </plugins>
  132. </build>
  133. </project>