pom.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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>wk_crm</artifactId>
  12. <version>0.0.1-SNAPSHOT</version>
  13. <name>crm</name>
  14. <description>客户关系管理</description>
  15. <dependencies>
  16. <dependency>
  17. <groupId>com.kakarote</groupId>
  18. <artifactId>core</artifactId>
  19. <version>${core.version}</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>io.seata</groupId>
  23. <artifactId>seata-spring-boot-starter</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.itextpdf</groupId>
  27. <artifactId>itextpdf</artifactId>
  28. <version>5.5.11</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.itextpdf</groupId>
  32. <artifactId>itext-asian</artifactId>
  33. <version>5.2.0</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.itextpdf.tool</groupId>
  37. <artifactId>xmlworker</artifactId>
  38. <version>5.5.11</version>
  39. </dependency>
  40. <!-- elasticsearch 版本为6.8.6-->
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
  44. </dependency>
  45. </dependencies>
  46. <build>
  47. <resources>
  48. <resource>
  49. <!-- xml放在java目录下-->
  50. <directory>src/main/java/com/kakarote/${name}/</directory>
  51. <includes>
  52. <include>**/*.xml</include>
  53. </includes>
  54. </resource>
  55. <!--解决idea不识别resources的问题-->
  56. <resource>
  57. <directory>src/main/resources</directory>
  58. <filtering>true</filtering>
  59. <excludes>
  60. <exclude>fonts/*</exclude>
  61. </excludes>
  62. </resource>
  63. <!--自定义字体文件,打印预览使用-->
  64. <resource>
  65. <directory>src/main/resources</directory>
  66. <filtering>false</filtering>
  67. <includes>
  68. <include>fonts/*</include>
  69. </includes>
  70. </resource>
  71. </resources>
  72. <plugins>
  73. <!--打包jar-->
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-jar-plugin</artifactId>
  77. <configuration>
  78. <archive>
  79. <manifest>
  80. <addClasspath>true</addClasspath>
  81. <!--MANIFEST.MF 中 Class-Path 加入前缀-->
  82. <classpathPrefix>lib/</classpathPrefix>
  83. <!--jar包不包含唯一版本标识-->
  84. <useUniqueVersions>false</useUniqueVersions>
  85. <!--指定入口类-->
  86. <mainClass>com.kakarote.crm.CrmApplication</mainClass>
  87. </manifest>
  88. <manifestEntries>
  89. <!--MANIFEST.MF 中 Class-Path 加入资源文件目录-->
  90. <Class-Path>./config/</Class-Path>
  91. </manifestEntries>
  92. </archive>
  93. <outputDirectory>${project.build.directory}</outputDirectory>
  94. </configuration>
  95. </plugin>
  96. <!--拷贝依赖 copy-dependencies-->
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-dependency-plugin</artifactId>
  100. <executions>
  101. <execution>
  102. <id>copy-dependencies</id>
  103. <phase>package</phase>
  104. <goals>
  105. <goal>copy-dependencies</goal>
  106. </goals>
  107. <configuration>
  108. <outputDirectory>
  109. ${project.build.directory}/lib/
  110. </outputDirectory>
  111. </configuration>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. <!--拷贝资源文件 copy-resources-->
  116. <plugin>
  117. <artifactId>maven-resources-plugin</artifactId>
  118. <executions>
  119. <execution>
  120. <id>copy-resources</id>
  121. <phase>package</phase>
  122. <goals>
  123. <goal>copy-resources</goal>
  124. </goals>
  125. <configuration>
  126. <resources>
  127. <resource>
  128. <directory>src/main/resources/</directory>
  129. </resource>
  130. </resources>
  131. <outputDirectory>${project.build.directory}/config</outputDirectory>
  132. </configuration>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <artifactId>maven-assembly-plugin</artifactId>
  138. <configuration>
  139. <finalName>${name}</finalName>
  140. <appendAssemblyId>false</appendAssemblyId>
  141. <descriptors>
  142. <descriptor>../assembly.xml</descriptor>
  143. </descriptors>
  144. </configuration>
  145. <executions>
  146. <execution>
  147. <id>make-assembly</id>
  148. <phase>package</phase>
  149. <goals>
  150. <goal>single</goal>
  151. </goals>
  152. </execution>
  153. </executions>
  154. </plugin>
  155. </plugins>
  156. </build>
  157. </project>