pom.xml 3.2 KB

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