elastic-data-test

pom.xml 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. <artifactId>elastic-data-test</artifactId>
  7. <groupId>com.vcarecity.test.data</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>elastic-publish-service</artifactId>
  12. <dependencies>
  13. <dependency>
  14. <groupId>com.vcarecity.test.data</groupId>
  15. <artifactId>common</artifactId>
  16. </dependency>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-web</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-aop</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.mybatis.spring.boot</groupId>
  27. <artifactId>mybatis-spring-boot-starter</artifactId>
  28. <version>2.1.1</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-data-redis</artifactId>
  33. </dependency>
  34. <!-- <dependency>
  35. <groupId>oracle.jdbc</groupId>
  36. <artifactId>ojdbc8</artifactId>
  37. </dependency>-->
  38. <dependency>
  39. <groupId>org.elasticsearch.client</groupId>
  40. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.elasticsearch.client</groupId>
  44. <artifactId>elasticsearch-rest-client</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.elasticsearch</groupId>
  48. <artifactId>elasticsearch</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.projectlombok</groupId>
  52. <artifactId>lombok</artifactId>
  53. <scope>provided</scope>
  54. </dependency>
  55. <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
  56. <dependency>
  57. <groupId>mysql</groupId>
  58. <artifactId>mysql-connector-java</artifactId>
  59. <version>8.0.18</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-test</artifactId>
  64. <scope>test</scope>
  65. <exclusions>
  66. <exclusion>
  67. <groupId>org.junit.vintage</groupId>
  68. <artifactId>junit-vintage-engine</artifactId>
  69. </exclusion>
  70. </exclusions>
  71. </dependency>
  72. </dependencies>
  73. <build>
  74. <plugins>
  75. <plugin>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-maven-plugin</artifactId>
  78. </plugin>
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-jar-plugin</artifactId>
  82. <configuration>
  83. <archive>
  84. <manifest>
  85. <addClasspath>true</addClasspath>
  86. <classpathPrefix>lib/</classpathPrefix>
  87. <mainClass>com.vcarecity.publish.ElasticPublishApplication</mainClass>
  88. </manifest>
  89. </archive>
  90. <excludes>
  91. <exclude>rebel.xml</exclude>
  92. </excludes>
  93. </configuration>
  94. </plugin>
  95. <plugin>
  96. <artifactId>maven-resources-plugin</artifactId>
  97. <configuration>
  98. <encoding>UTF-8</encoding>
  99. </configuration>
  100. <executions>
  101. <execution>
  102. <id>copy-resource-config</id>
  103. <phase>package</phase>
  104. <goals>
  105. <goal>copy-resources</goal>
  106. </goals>
  107. <configuration>
  108. <outputDirectory>${project.build.directory}/config</outputDirectory>
  109. <resources>
  110. <resource>
  111. <directory>${project.basedir}/src/main/resources</directory>
  112. <include>*.yml</include>
  113. <include>*.properties</include>
  114. </resource>
  115. </resources>
  116. </configuration>
  117. </execution>
  118. <execution>
  119. <id>copy-resource-logback</id>
  120. <phase>package</phase>
  121. <goals>
  122. <goal>copy-resources</goal>
  123. </goals>
  124. <configuration>
  125. <outputDirectory>${project.build.directory}/config</outputDirectory>
  126. <resources>
  127. <resource>
  128. <directory>${project.basedir}/config</directory>
  129. <include>logback-my.xml</include>
  130. </resource>
  131. </resources>
  132. </configuration>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-surefire-plugin</artifactId>
  139. <version>2.21.0</version>
  140. <configuration>
  141. <skipTests>true</skipTests>
  142. </configuration>
  143. </plugin>
  144. <plugin>
  145. <groupId>org.apache.maven.plugins</groupId>
  146. <artifactId>maven-dependency-plugin</artifactId>
  147. <version>3.0.1</version>
  148. <executions>
  149. <execution>
  150. <id>copy-dependencies</id>
  151. <phase>package</phase>
  152. <goals>
  153. <goal>copy-dependencies</goal>
  154. </goals>
  155. <configuration>
  156. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  157. </configuration>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. </plugins>
  162. </build>
  163. </project>