pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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-pinyin</name>
  6. <modelVersion>4.0.0</modelVersion>
  7. <groupId>org.elasticsearch</groupId>
  8. <artifactId>elasticsearch-analysis-pinyin</artifactId>
  9. <version>${elasticsearch.version}</version>
  10. <packaging>jar</packaging>
  11. <description>Pinyin Analysis for Elasticsearch</description>
  12. <inceptionYear>2012</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-pinyin</elasticsearch.plugin.name>
  18. <elasticsearch.plugin.classname>org.elasticsearch.plugin.analysis.pinyin.AnalysisPinyinPlugin</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-pinyin.git</connection>
  42. <developerConnection>scm:git:git@github.com:medcl/elasticsearch-analysis-pinyin.git
  43. </developerConnection>
  44. <url>http://github.com/medcl/elasticsearch-analysis-pinyin</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>
  66. <enabled>true</enabled>
  67. </releases>
  68. <snapshots>
  69. <enabled>true</enabled>
  70. </snapshots>
  71. <url>http://oss.sonatype.org/content/repositories/releases/</url>
  72. </repository>
  73. </repositories>
  74. <dependencies>
  75. <dependency>
  76. <groupId>org.nlpcn</groupId>
  77. <artifactId>nlp-lang</artifactId>
  78. <version>1.7</version>
  79. <systemPath>${basedir}/lib/nlp-lang-1.7.jar</systemPath>
  80. <scope>system</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.elasticsearch</groupId>
  84. <artifactId>elasticsearch</artifactId>
  85. <version>${elasticsearch.version}</version>
  86. <scope>compile</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>log4j</groupId>
  90. <artifactId>log4j</artifactId>
  91. <version>1.2.17</version>
  92. <scope>runtime</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.hamcrest</groupId>
  96. <artifactId>hamcrest-core</artifactId>
  97. <version>1.3.RC2</version>
  98. <scope>test</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.hamcrest</groupId>
  102. <artifactId>hamcrest-library</artifactId>
  103. <version>1.3.RC2</version>
  104. <scope>test</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.powermock</groupId>
  108. <artifactId>powermock-module-junit4</artifactId>
  109. <version>1.6.2</version>
  110. <scope>test</scope>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.powermock</groupId>
  114. <artifactId>powermock-api-mockito</artifactId>
  115. <version>1.6.2</version>
  116. <scope>test</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>nl.jqno.equalsverifier</groupId>
  120. <artifactId>equalsverifier</artifactId>
  121. <version>1.7.5</version>
  122. <scope>test</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.openpojo</groupId>
  126. <artifactId>openpojo</artifactId>
  127. <version>0.8.1</version>
  128. <scope>test</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>junit</groupId>
  132. <artifactId>junit</artifactId>
  133. <version>4.9</version>
  134. <scope>test</scope>
  135. </dependency>
  136. </dependencies>
  137. <build>
  138. <plugins>
  139. <plugin>
  140. <groupId>org.apache.maven.plugins</groupId>
  141. <artifactId>maven-compiler-plugin</artifactId>
  142. <version>3.5.1</version>
  143. <configuration>
  144. <source>${maven.compiler.target}</source>
  145. <target>${maven.compiler.target}</target>
  146. </configuration>
  147. </plugin>
  148. <plugin>
  149. <groupId>org.apache.maven.plugins</groupId>
  150. <artifactId>maven-surefire-plugin</artifactId>
  151. <version>2.19.1</version>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-source-plugin</artifactId>
  156. <version>2.1.2</version>
  157. <executions>
  158. <execution>
  159. <id>attach-sources</id>
  160. <goals>
  161. <goal>jar</goal>
  162. </goals>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. <plugin>
  167. <artifactId>maven-assembly-plugin</artifactId>
  168. <version>2.3</version>
  169. <configuration>
  170. <appendAssemblyId>false</appendAssemblyId>
  171. <outputDirectory>${project.build.directory}/releases/</outputDirectory>
  172. <descriptors>
  173. <descriptor>${basedir}/src/main/assemblies/plugin.xml</descriptor>
  174. </descriptors>
  175. </configuration>
  176. <executions>
  177. <execution>
  178. <phase>package</phase>
  179. <goals>
  180. <goal>single</goal>
  181. </goals>
  182. </execution>
  183. </executions>
  184. </plugin>
  185. </plugins>
  186. </build>
  187. <profiles>
  188. <profile>
  189. <id>disable-java8-doclint</id>
  190. <activation>
  191. <jdk>[1.8,)</jdk>
  192. </activation>
  193. <properties>
  194. <additionalparam>-Xdoclint:none</additionalparam>
  195. </properties>
  196. </profile>
  197. <profile>
  198. <id>release</id>
  199. <build>
  200. <plugins>
  201. <plugin>
  202. <groupId>org.sonatype.plugins</groupId>
  203. <artifactId>nexus-staging-maven-plugin</artifactId>
  204. <version>1.6.3</version>
  205. <extensions>true</extensions>
  206. <configuration>
  207. <serverId>oss</serverId>
  208. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  209. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  210. </configuration>
  211. </plugin>
  212. <plugin>
  213. <groupId>org.apache.maven.plugins</groupId>
  214. <artifactId>maven-release-plugin</artifactId>
  215. <version>2.1</version>
  216. <configuration>
  217. <autoVersionSubmodules>true</autoVersionSubmodules>
  218. <useReleaseProfile>false</useReleaseProfile>
  219. <releaseProfiles>release</releaseProfiles>
  220. <goals>deploy</goals>
  221. </configuration>
  222. </plugin>
  223. <plugin>
  224. <groupId>org.apache.maven.plugins</groupId>
  225. <artifactId>maven-compiler-plugin</artifactId>
  226. <version>3.5.1</version>
  227. <configuration>
  228. <source>${maven.compiler.target}</source>
  229. <target>${maven.compiler.target}</target>
  230. </configuration>
  231. </plugin>
  232. <plugin>
  233. <groupId>org.apache.maven.plugins</groupId>
  234. <artifactId>maven-gpg-plugin</artifactId>
  235. <version>1.5</version>
  236. <executions>
  237. <execution>
  238. <id>sign-artifacts</id>
  239. <phase>verify</phase>
  240. <goals>
  241. <goal>sign</goal>
  242. </goals>
  243. </execution>
  244. </executions>
  245. </plugin>
  246. <plugin>
  247. <groupId>org.apache.maven.plugins</groupId>
  248. <artifactId>maven-source-plugin</artifactId>
  249. <version>2.2.1</version>
  250. <executions>
  251. <execution>
  252. <id>attach-sources</id>
  253. <goals>
  254. <goal>jar-no-fork</goal>
  255. </goals>
  256. </execution>
  257. </executions>
  258. </plugin>
  259. <plugin>
  260. <groupId>org.apache.maven.plugins</groupId>
  261. <artifactId>maven-javadoc-plugin</artifactId>
  262. <version>2.9</version>
  263. <executions>
  264. <execution>
  265. <id>attach-javadocs</id>
  266. <goals>
  267. <goal>jar</goal>
  268. </goals>
  269. </execution>
  270. </executions>
  271. </plugin>
  272. </plugins>
  273. </build>
  274. </profile>
  275. </profiles>
  276. </project>