pom.xml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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>crmeb</artifactId>
  7. <groupId>com.zbkj</groupId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>crmeb-front</artifactId>
  12. <packaging>jar</packaging>
  13. <properties>
  14. <crmeb-service>0.0.1-SNAPSHOT</crmeb-service>
  15. <redisson-version>3.14.1</redisson-version>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>com.zbkj</groupId>
  20. <artifactId>crmeb-service</artifactId>
  21. <version>${crmeb-service}</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.redisson</groupId>
  25. <artifactId>redisson</artifactId>
  26. <version>${redisson-version}</version>
  27. </dependency>
  28. </dependencies>
  29. <build>
  30. <!--打包配置-->
  31. <finalName>Crmeb-front</finalName>
  32. <plugins>
  33. <plugin>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-maven-plugin</artifactId>
  36. <version>2.3.0.RELEASE</version>
  37. <executions>
  38. <execution>
  39. <goals>
  40. <goal>repackage</goal><!--可以把依赖的包都打包到生成的Jar包中-->
  41. </goals>
  42. </execution>
  43. </executions>
  44. </plugin>
  45. </plugins>
  46. <resources>
  47. <!-- <resource>-->
  48. <!-- <directory>src/main/resources</directory>-->
  49. <!-- &lt;!&ndash; 处理文件时替换文件中的变量 &ndash;&gt;-->
  50. <!-- <filtering>true</filtering>-->
  51. <!-- <excludes>-->
  52. <!-- &lt;!&ndash; 打包时排除文件 &ndash;&gt;-->
  53. <!--&lt;!&ndash; <exclude>application.yml</exclude>&ndash;&gt;-->
  54. <!-- <exclude>application-{profile}.yml</exclude>-->
  55. <!--&lt;!&ndash; <exclude>application-beta.yml</exclude>&ndash;&gt;-->
  56. <!--&lt;!&ndash; <exclude>application-prod.yml</exclude>&ndash;&gt;-->
  57. <!-- </excludes>-->
  58. <!-- </resource>-->
  59. <resource>
  60. <directory>src/main/resources</directory>
  61. <filtering>true</filtering>
  62. </resource>
  63. <!-- <resource>-->
  64. <!-- <directory>src/main/resources.${spring.profiles.active}</directory>-->
  65. <!-- <filtering>false</filtering>-->
  66. <!-- </resource>-->
  67. <!--这个元素描述了项目相关的所有资源路径列表,例如和项目相关的属性文件,这些资源被包含在最终的打包文件里。-->
  68. <resource>
  69. <!-- 描述存放资源的目录,该路径相对POM路径-->
  70. <directory>src/main/java</directory>
  71. <includes>
  72. <include>**/*.xml</include>
  73. </includes>
  74. </resource>
  75. </resources>
  76. </build>
  77. </project>