pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <packaging>jar</packaging>
  6. <parent>
  7. <groupId>com.kakarote</groupId>
  8. <artifactId>wkcrm</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>datarecept</artifactId>
  12. <version>0.0.1-SNAPSHOT</version>
  13. <name>datarecept</name>
  14. <description>datarecept</description>
  15. <dependencies>
  16. <dependency>
  17. <groupId>com.kakarote</groupId>
  18. <artifactId>core</artifactId>
  19. <version>${core.version}</version>
  20. </dependency>
  21. <!--HJ212协议数据转换所需包-->
  22. <dependency>
  23. <groupId>javax.json.bind</groupId>
  24. <artifactId>javax.json.bind-api</artifactId>
  25. <version>1.0</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.hibernate</groupId>
  29. <artifactId>hibernate-validator</artifactId>
  30. <version>6.0.2.Final</version>
  31. <exclusions>
  32. <exclusion>
  33. <groupId>javax.validation</groupId>
  34. <artifactId>validation-api</artifactId>
  35. </exclusion>
  36. </exclusions>
  37. </dependency>
  38. <!--流媒体读取-->
  39. <dependency>
  40. <groupId>org.bytedeco</groupId>
  41. <artifactId>javacpp</artifactId>
  42. <version>1.4.3</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.bytedeco.javacpp-presets</groupId>
  46. <artifactId>ffmpeg-platform</artifactId>
  47. <version>4.0.2-1.4.3</version>
  48. </dependency>
  49. <!--job-->
  50. <dependency>
  51. <groupId>com.xuxueli</groupId>
  52. <artifactId>xxl-job-core</artifactId>
  53. <version>2.3.0</version>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <resources>
  58. <resource>
  59. <!-- xml放在java目录下-->
  60. <directory>src/main/java/com/qdoner/datarecept/</directory>
  61. <includes>
  62. <include>**/*.xml</include>
  63. </includes>
  64. </resource>
  65. <!--解决idea不识别resources的问题-->
  66. <resource>
  67. <directory>src/main/resources</directory>
  68. <filtering>true</filtering>
  69. </resource>
  70. </resources>
  71. <plugins>
  72. <!--打包jar-->
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-jar-plugin</artifactId>
  76. <configuration>
  77. <archive>
  78. <manifest>
  79. <addClasspath>true</addClasspath>
  80. <!--MANIFEST.MF 中 Class-Path 加入前缀-->
  81. <classpathPrefix>lib/</classpathPrefix>
  82. <!--jar包不包含唯一版本标识-->
  83. <useUniqueVersions>false</useUniqueVersions>
  84. <!--指定入口类-->
  85. <mainClass>com.qdoner.datarecept.DatareceptApplication</mainClass>
  86. </manifest>
  87. <manifestEntries>
  88. <!--MANIFEST.MF 中 Class-Path 加入资源文件目录-->
  89. <Class-Path>./config/</Class-Path>
  90. </manifestEntries>
  91. </archive>
  92. <outputDirectory>${project.build.directory}</outputDirectory>
  93. </configuration>
  94. </plugin>
  95. <!--拷贝依赖 copy-dependencies-->
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-dependency-plugin</artifactId>
  99. <executions>
  100. <execution>
  101. <id>copy-dependencies</id>
  102. <phase>package</phase>
  103. <goals>
  104. <goal>copy-dependencies</goal>
  105. </goals>
  106. <configuration>
  107. <outputDirectory>
  108. ${project.build.directory}/lib/
  109. </outputDirectory>
  110. </configuration>
  111. </execution>
  112. </executions>
  113. </plugin>
  114. <!--拷贝资源文件 copy-resources-->
  115. <plugin>
  116. <artifactId>maven-resources-plugin</artifactId>
  117. <executions>
  118. <execution>
  119. <id>copy-resources</id>
  120. <phase>package</phase>
  121. <goals>
  122. <goal>copy-resources</goal>
  123. </goals>
  124. <configuration>
  125. <resources>
  126. <resource>
  127. <directory>src/main/resources/</directory>
  128. </resource>
  129. </resources>
  130. <outputDirectory>${project.build.directory}/config</outputDirectory>
  131. </configuration>
  132. </execution>
  133. </executions>
  134. </plugin>
  135. <plugin>
  136. <artifactId>maven-assembly-plugin</artifactId>
  137. <configuration>
  138. <appendAssemblyId>false</appendAssemblyId>
  139. <descriptors>
  140. <descriptor>../assembly.xml</descriptor>
  141. </descriptors>
  142. </configuration>
  143. <executions>
  144. <execution>
  145. <id>make-assembly</id>
  146. <phase>package</phase>
  147. <goals>
  148. <goal>single</goal>
  149. </goals>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. <!-- Allatori plugin start -->
  154. <!--<plugin>
  155. <groupId>org.apache.maven.plugins</groupId>
  156. <artifactId>maven-resources-plugin</artifactId>
  157. <version>2.6</version>
  158. <executions>
  159. <execution>
  160. <id>copy-and-filter-allatori-config</id>
  161. <phase>package</phase>
  162. <goals>
  163. <goal>copy-resources</goal>
  164. </goals>
  165. <configuration>
  166. <outputDirectory>${basedir}/target</outputDirectory>
  167. <resources>
  168. <resource>
  169. <directory>${basedir}/allatori</directory>
  170. <includes>
  171. <include>allatori.xml</include>
  172. </includes>
  173. <filtering>true</filtering>
  174. </resource>
  175. </resources>
  176. </configuration>
  177. </execution>
  178. </executions>
  179. </plugin>
  180. <plugin>
  181. <groupId>org.codehaus.mojo</groupId>
  182. <artifactId>exec-maven-plugin</artifactId>
  183. <version>1.2.1</version>
  184. <executions>
  185. <execution>
  186. <id>run-allatori</id>
  187. <phase>package</phase>
  188. <goals>
  189. <goal>exec</goal>
  190. </goals>
  191. </execution>
  192. </executions>
  193. <configuration>
  194. <executable>java</executable>
  195. <arguments>
  196. <argument>-Xms128m</argument>
  197. <argument>-Xmx512m</argument>
  198. <argument>-jar</argument>
  199. <argument>${basedir}/lib/allatori.jar</argument>
  200. <argument>${basedir}/target/allatori.xml</argument>
  201. </arguments>
  202. </configuration>
  203. </plugin>-->
  204. <!-- Allatori plugin end -->
  205. </plugins>
  206. </build>
  207. </project>