pom.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>1.5.1.RELEASE</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <groupId>com.uas.cloud.base.jkes.services</groupId>
  12. <artifactId>jkes-search-service</artifactId>
  13. <version>1.1.0</version>
  14. <properties>
  15. <jackson.version>2.8.7</jackson.version>
  16. <java.version>1.8</java.version>
  17. <elasticsearch.version>5.4.1</elasticsearch.version>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <java.version>1.8</java.version>
  20. <docker.image.prefix>10.10.100.200:5000</docker.image.prefix>
  21. <docker.plugin.version>0.3.258</docker.plugin.version>
  22. </properties>
  23. <dependencies>
  24. <!-- elasticsearch rest client -->
  25. <dependency>
  26. <groupId>org.elasticsearch.client</groupId>
  27. <artifactId>rest</artifactId>
  28. <version>5.4.1</version>
  29. </dependency>
  30. <!-- automatically discover nodes from a running Elasticsearch cluster and set them to an existing RestClient instance. -->
  31. <dependency>
  32. <groupId>org.elasticsearch.client</groupId>
  33. <artifactId>sniffer</artifactId>
  34. <version>5.4.1</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.fasterxml.jackson.module</groupId>
  38. <artifactId>jackson-module-parameter-names</artifactId>
  39. <version>${jackson.version}</version>
  40. <scope>compile</scope>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.fasterxml.jackson.core</groupId>
  44. <artifactId>jackson-databind</artifactId>
  45. <version>${jackson.version}</version>
  46. </dependency>
  47. <!-- json lib -->
  48. <dependency>
  49. <groupId>org.json</groupId>
  50. <artifactId>json</artifactId>
  51. <version>20160810</version>
  52. <scope>compile</scope>
  53. </dependency>
  54. <!-- support data types of "json org" JSON library -->
  55. <dependency>
  56. <groupId>com.fasterxml.jackson.datatype</groupId>
  57. <artifactId>jackson-datatype-json-org</artifactId>
  58. <version>${jackson.version}</version>
  59. </dependency>
  60. <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
  61. <dependency>
  62. <groupId>org.apache.commons</groupId>
  63. <artifactId>commons-lang3</artifactId>
  64. <version>3.5</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-starter</artifactId>
  69. <exclusions>
  70. <exclusion>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-starter-logging</artifactId>
  73. </exclusion>
  74. </exclusions>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-log4j2</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-starter-web</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.springframework.data</groupId>
  90. <artifactId>spring-data-commons</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-devtools</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-starter-test</artifactId>
  99. <scope>test</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-configuration-processor</artifactId>
  104. <optional>true</optional>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.projectlombok</groupId>
  108. <artifactId>lombok</artifactId>
  109. <version>1.16.14</version>
  110. <scope>provided</scope>
  111. </dependency>
  112. </dependencies>
  113. <build>
  114. <plugins>
  115. <plugin>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-maven-plugin</artifactId>
  118. </plugin>
  119. <plugin>
  120. <groupId>com.spotify</groupId>
  121. <artifactId>docker-maven-plugin</artifactId>
  122. <version>${docker.plugin.version}</version>
  123. <executions>
  124. <execution>
  125. <phase>install</phase>
  126. <goals>
  127. <goal>build</goal>
  128. </goals>
  129. </execution>
  130. </executions>
  131. <configuration>
  132. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  133. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  134. <imageTags>
  135. <imageTag>${project.version}</imageTag>
  136. <imageTag>latest</imageTag>
  137. </imageTags>
  138. <resources>
  139. <resource>
  140. <targetPath>/</targetPath>
  141. <directory>${project.build.directory}</directory>
  142. <include>${project.build.finalName}.jar</include>
  143. </resource>
  144. </resources>
  145. </configuration>
  146. </plugin>
  147. </plugins>
  148. </build>
  149. <distributionManagement>
  150. <!-- 发布release仓库 -->
  151. <repository>
  152. <id>platform-release</id>
  153. <name>platform-release</name>
  154. <url>http://113.105.74.141:8081/artifactory/libs-release-local</url>
  155. </repository>
  156. <!-- 发布快照版本 -->
  157. <snapshotRepository>
  158. <id>platform-snapshots</id>
  159. <name>platform-snapshots</name>
  160. <url>http://113.105.74.141:8081/artifactory/libs-snapshot-local</url>
  161. </snapshotRepository>
  162. </distributionManagement>
  163. </project>