pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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. <name>elasticsearch-analysis-ik</name>
  6. <modelVersion>4.0.0</modelVersion>
  7. <groupId>org.elasticsearch</groupId>
  8. <artifactId>elasticsearch-analysis-ik</artifactId>
  9. <version>${elasticsearch.version}</version>
  10. <packaging>jar</packaging>
  11. <description>IK Analyzer for Elasticsearch</description>
  12. <inceptionYear>2011</inceptionYear>
  13. <properties>
  14. <elasticsearch.version>7.14.0</elasticsearch.version>
  15. <maven.compiler.target>16</maven.compiler.target>
  16. <elasticsearch.assembly.descriptor>${project.basedir}/src/main/assemblies/plugin.xml</elasticsearch.assembly.descriptor>
  17. <elasticsearch.plugin.name>analysis-ik</elasticsearch.plugin.name>
  18. <elasticsearch.plugin.classname>org.elasticsearch.plugin.analysis.ik.AnalysisIkPlugin</elasticsearch.plugin.classname>
  19. <elasticsearch.plugin.jvm>true</elasticsearch.plugin.jvm>
  20. <tests.rest.load_packaged>false</tests.rest.load_packaged>
  21. <skip.unit.tests>true</skip.unit.tests>
  22. <gpg.keyname>4E899B30</gpg.keyname>
  23. <gpg.useagent>true</gpg.useagent>
  24. </properties>
  25. <licenses>
  26. <license>
  27. <name>The Apache Software License, Version 2.0</name>
  28. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  29. <distribution>repo</distribution>
  30. </license>
  31. </licenses>
  32. <developers>
  33. <developer>
  34. <name>Medcl</name>
  35. <email>medcl@elastic.co</email>
  36. <organization>elastic</organization>
  37. <organizationUrl>http://www.elastic.co</organizationUrl>
  38. </developer>
  39. </developers>
  40. <scm>
  41. <connection>scm:git:git@github.com:medcl/elasticsearch-analysis-ik.git</connection>
  42. <developerConnection>scm:git:git@github.com:medcl/elasticsearch-analysis-ik.git
  43. </developerConnection>
  44. <url>http://github.com/medcl/elasticsearch-analysis-ik</url>
  45. </scm>
  46. <parent>
  47. <groupId>org.sonatype.oss</groupId>
  48. <artifactId>oss-parent</artifactId>
  49. <version>9</version>
  50. </parent>
  51. <distributionManagement>
  52. <snapshotRepository>
  53. <id>oss.sonatype.org</id>
  54. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  55. </snapshotRepository>
  56. <repository>
  57. <id>oss.sonatype.org</id>
  58. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  59. </repository>
  60. </distributionManagement>
  61. <repositories>
  62. <repository>
  63. <id>oss.sonatype.org</id>
  64. <name>OSS Sonatype</name>
  65. <releases><enabled>true</enabled></releases>
  66. <snapshots><enabled>true</enabled></snapshots>
  67. <url>http://oss.sonatype.org/content/repositories/releases/</url>
  68. </repository>
  69. </repositories>
  70. <dependencies>
  71. <dependency>
  72. <groupId>org.elasticsearch</groupId>
  73. <artifactId>elasticsearch</artifactId>
  74. <version>${elasticsearch.version}</version>
  75. <scope>compile</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>mysql</groupId>
  79. <artifactId>mysql-connector-java</artifactId>
  80. <version>8.0.21</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.httpcomponents</groupId>
  84. <artifactId>httpclient</artifactId>
  85. <version>4.5.2</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.apache.logging.log4j</groupId>
  89. <artifactId>log4j-api</artifactId>
  90. <version>2.3</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.hamcrest</groupId>
  94. <artifactId>hamcrest-core</artifactId>
  95. <version>1.3</version>
  96. <scope>test</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.hamcrest</groupId>
  100. <artifactId>hamcrest-library</artifactId>
  101. <version>1.3</version>
  102. <scope>test</scope>
  103. </dependency>
  104. <dependency>
  105. <groupId>junit</groupId>
  106. <artifactId>junit</artifactId>
  107. <version>4.12</version>
  108. <scope>test</scope>
  109. </dependency>
  110. </dependencies>
  111. <build>
  112. <plugins>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-compiler-plugin</artifactId>
  116. <version>3.5.1</version>
  117. <configuration>
  118. <source>${maven.compiler.target}</source>
  119. <target>${maven.compiler.target}</target>
  120. </configuration>
  121. </plugin>
  122. <plugin>
  123. <groupId>org.apache.maven.plugins</groupId>
  124. <artifactId>maven-surefire-plugin</artifactId>
  125. <version>2.11</version>
  126. <configuration>
  127. <includes>
  128. <include>**/*Tests.java</include>
  129. </includes>
  130. </configuration>
  131. </plugin>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-source-plugin</artifactId>
  135. <version>2.1.2</version>
  136. <executions>
  137. <execution>
  138. <id>attach-sources</id>
  139. <goals>
  140. <goal>jar</goal>
  141. </goals>
  142. </execution>
  143. </executions>
  144. </plugin>
  145. <plugin>
  146. <artifactId>maven-assembly-plugin</artifactId>
  147. <configuration>
  148. <appendAssemblyId>false</appendAssemblyId>
  149. <outputDirectory>${project.build.directory}/releases/</outputDirectory>
  150. <descriptors>
  151. <descriptor>${basedir}/src/main/assemblies/plugin.xml</descriptor>
  152. </descriptors>
  153. <archive>
  154. <manifest>
  155. <mainClass>fully.qualified.MainClass</mainClass>
  156. </manifest>
  157. </archive>
  158. </configuration>
  159. <executions>
  160. <execution>
  161. <phase>package</phase>
  162. <goals>
  163. <goal>single</goal>
  164. </goals>
  165. </execution>
  166. </executions>
  167. </plugin>
  168. </plugins>
  169. </build>
  170. <profiles>
  171. <profile>
  172. <id>disable-java8-doclint</id>
  173. <activation>
  174. <jdk>[1.8,)</jdk>
  175. </activation>
  176. <properties>
  177. <additionalparam>-Xdoclint:none</additionalparam>
  178. </properties>
  179. </profile>
  180. <profile>
  181. <id>release</id>
  182. <build>
  183. <plugins>
  184. <plugin>
  185. <groupId>org.sonatype.plugins</groupId>
  186. <artifactId>nexus-staging-maven-plugin</artifactId>
  187. <version>1.6.3</version>
  188. <extensions>true</extensions>
  189. <configuration>
  190. <serverId>oss</serverId>
  191. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  192. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  193. </configuration>
  194. </plugin>
  195. <plugin>
  196. <groupId>org.apache.maven.plugins</groupId>
  197. <artifactId>maven-release-plugin</artifactId>
  198. <version>2.1</version>
  199. <configuration>
  200. <autoVersionSubmodules>true</autoVersionSubmodules>
  201. <useReleaseProfile>false</useReleaseProfile>
  202. <releaseProfiles>release</releaseProfiles>
  203. <goals>deploy</goals>
  204. </configuration>
  205. </plugin>
  206. <plugin>
  207. <groupId>org.apache.maven.plugins</groupId>
  208. <artifactId>maven-compiler-plugin</artifactId>
  209. <version>3.5.1</version>
  210. <configuration>
  211. <source>${maven.compiler.target}</source>
  212. <target>${maven.compiler.target}</target>
  213. </configuration>
  214. </plugin>
  215. <plugin>
  216. <groupId>org.apache.maven.plugins</groupId>
  217. <artifactId>maven-gpg-plugin</artifactId>
  218. <version>1.5</version>
  219. <executions>
  220. <execution>
  221. <id>sign-artifacts</id>
  222. <phase>verify</phase>
  223. <goals>
  224. <goal>sign</goal>
  225. </goals>
  226. </execution>
  227. </executions>
  228. </plugin>
  229. <plugin>
  230. <groupId>org.apache.maven.plugins</groupId>
  231. <artifactId>maven-source-plugin</artifactId>
  232. <version>2.2.1</version>
  233. <executions>
  234. <execution>
  235. <id>attach-sources</id>
  236. <goals>
  237. <goal>jar-no-fork</goal>
  238. </goals>
  239. </execution>
  240. </executions>
  241. </plugin>
  242. <plugin>
  243. <groupId>org.apache.maven.plugins</groupId>
  244. <artifactId>maven-javadoc-plugin</artifactId>
  245. <version>2.9</version>
  246. <executions>
  247. <execution>
  248. <id>attach-javadocs</id>
  249. <goals>
  250. <goal>jar</goal>
  251. </goals>
  252. </execution>
  253. </executions>
  254. </plugin>
  255. </plugins>
  256. </build>
  257. </profile>
  258. </profiles>
  259. </project>