pom.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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.xm</groupId>
  7. <artifactId>similarity</artifactId>
  8. <version>1.2</version>
  9. <parent>
  10. <groupId>com.tzld.commons</groupId>
  11. <artifactId>supom</artifactId>
  12. <version>1.0.9</version>
  13. </parent>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <junit.version>4.11</junit.version>
  17. <slf4j.version>1.7.7</slf4j.version>
  18. <logback.version>1.1.2</logback.version>
  19. <commons.lang3.version>3.3.1</commons.lang3.version>
  20. </properties>
  21. <dependencies>
  22. <!-- 日志包 -->
  23. <dependency>
  24. <groupId>ch.qos.logback</groupId>
  25. <artifactId>logback-classic</artifactId>
  26. <version>${logback.version}</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>ch.qos.logback</groupId>
  30. <artifactId>logback-core</artifactId>
  31. <version>${logback.version}</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>ch.qos.logback</groupId>
  35. <artifactId>logback-access</artifactId>
  36. <version>${logback.version}</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.slf4j</groupId>
  40. <artifactId>slf4j-api</artifactId>
  41. <version>${slf4j.version}</version>
  42. </dependency>
  43. <!-- 分词器 (可以替换为其他中文分词器)-->
  44. <!--<dependency>-->
  45. <!--<groupId>org.xm</groupId>-->
  46. <!--<artifactId>xmnlp</artifactId>-->
  47. <!--<version>1.3</version>-->
  48. <!--</dependency>-->
  49. <dependency>
  50. <groupId>com.hankcs</groupId>
  51. <artifactId>hanlp</artifactId>
  52. <version>portable-1.3.4</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.mockito</groupId>
  56. <artifactId>mockito-all</artifactId>
  57. <version>1.9.5</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.hamcrest</groupId>
  61. <artifactId>hamcrest-all</artifactId>
  62. <version>1.3</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>args4j</groupId>
  66. <artifactId>args4j</artifactId>
  67. <version>2.0.16</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.google.guava</groupId>
  71. <artifactId>guava</artifactId>
  72. <version>13.0.1</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.commons</groupId>
  76. <artifactId>commons-lang3</artifactId>
  77. <version>${commons.lang3.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.google.collections</groupId>
  81. <artifactId>google-collections</artifactId>
  82. <version>1.0</version>
  83. </dependency>
  84. <!-- 测试包 -->
  85. <dependency>
  86. <groupId>junit</groupId>
  87. <artifactId>junit</artifactId>
  88. <version>${junit.version}</version>
  89. <scope>test</scope>
  90. </dependency>
  91. </dependencies>
  92. <repositories>
  93. <repository>
  94. <id>cengtral</id>
  95. <url>http://repo1.maven.org/maven2/</url>
  96. </repository>
  97. <!-- java.net maven repository, for example java mail -->
  98. <repository>
  99. <id>Java.Net</id>
  100. <url>http://download.java.net/maven/2/</url>
  101. </repository>
  102. <repository>
  103. <id>ansj-repo</id>
  104. <url>http://maven.ansj.org/</url>
  105. </repository>
  106. <repository>
  107. <id>info-bliki-repository</id>
  108. <url>http://gwtwiki.googlecode.com/svn/maven-repository/</url>
  109. <releases>
  110. <enabled>true</enabled>
  111. </releases>
  112. <snapshots>
  113. <enabled>false</enabled>
  114. </snapshots>
  115. </repository>
  116. <repository>
  117. <id>lib_id</id>
  118. <url>file://${project.basedir}/lib</url>
  119. </repository>
  120. </repositories>
  121. <build>
  122. <plugins>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-shade-plugin</artifactId>
  126. <version>3.2.4</version>
  127. <executions>
  128. <execution>
  129. <phase>package</phase>
  130. <goals>
  131. <goal>shade</goal>
  132. </goals>
  133. <configuration>
  134. <relocations>
  135. <relocation>
  136. <pattern>com.google.protobuf</pattern>
  137. <shadedPattern>shaded.com.google.protobuf</shadedPattern>
  138. </relocation>
  139. </relocations>
  140. <minimizeJar>false</minimizeJar>
  141. <shadedArtifactAttached>true</shadedArtifactAttached>
  142. <artifactSet>
  143. <includes>
  144. <!-- Include here the dependencies you
  145. want to be packed in your fat jar -->
  146. <include>*:*</include>
  147. </includes>
  148. </artifactSet>
  149. <filters>
  150. <filter>
  151. <artifact>*:*</artifact>
  152. <excludes>
  153. <exclude>META-INF/*.SF</exclude>
  154. <exclude>META-INF/*.DSA</exclude>
  155. <exclude>META-INF/*.RSA</exclude>
  156. <exclude>**/log4j.properties</exclude>
  157. </excludes>
  158. </filter>
  159. </filters>
  160. <transformers>
  161. <transformer
  162. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  163. <resource>reference.conf</resource>
  164. </transformer>
  165. <transformer
  166. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  167. <resource>
  168. META-INF/services/org.apache.spark.sql.sources.DataSourceRegister
  169. </resource>
  170. </transformer>
  171. </transformers>
  172. </configuration>
  173. </execution>
  174. </executions>
  175. </plugin>
  176. <plugin>
  177. <groupId>net.alchim31.maven</groupId>
  178. <artifactId>scala-maven-plugin</artifactId>
  179. <version>3.3.2</version>
  180. <executions>
  181. <execution>
  182. <id>scala-compile-first</id>
  183. <phase>process-resources</phase>
  184. <goals>
  185. <goal>compile</goal>
  186. </goals>
  187. </execution>
  188. <execution>
  189. <id>scala-test-compile-first</id>
  190. <phase>process-test-resources</phase>
  191. <goals>
  192. <goal>testCompile</goal>
  193. </goals>
  194. </execution>
  195. </executions>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-compiler-plugin</artifactId>
  200. <version>3.8.1</version>
  201. <configuration>
  202. <source>1.8</source>
  203. <target>1.8</target>
  204. <!--<compilerId>scala</compilerId>-->
  205. <!-- <compilerVersion>2.12.10</compilerVersion>-->
  206. </configuration>
  207. </plugin>
  208. </plugins>
  209. </build>
  210. </project>