pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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>jeecg-cloud-module</artifactId>
  7. <groupId>org.jeecgframework.boot</groupId>
  8. <version>2.4.5</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>jeecg-cloud-system-start</artifactId>
  12. <description>System项目微服务启动</description>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.jeecgframework.boot</groupId>
  16. <artifactId>jeecg-boot-base-core</artifactId>
  17. </dependency>
  18. <!-- 引入jeecg-boot-starter-cloud依赖 -->
  19. <dependency>
  20. <groupId>org.jeecgframework.boot</groupId>
  21. <artifactId>jeecg-boot-starter-cloud</artifactId>
  22. <!--system模块需要排除jeecg-system-cloud-api-->
  23. <exclusions>
  24. <exclusion>
  25. <groupId>org.jeecgframework.boot</groupId>
  26. <artifactId>jeecg-system-cloud-api</artifactId>
  27. </exclusion>
  28. </exclusions>
  29. </dependency>
  30. <!-- 引入jeecg-boot-module-system依赖 -->
  31. <dependency>
  32. <groupId>org.jeecgframework.boot</groupId>
  33. <artifactId>jeecg-boot-module-system</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-web</artifactId>
  38. </dependency>
  39. <!--rabbitmq消息队列-->
  40. <!-- <dependency>-->
  41. <!-- <groupId>org.jeecgframework.boot</groupId>-->
  42. <!-- <artifactId>jeecg-boot-starter-rabbitmq</artifactId>-->
  43. <!-- </dependency>-->
  44. <!--xxl-job定时任务-->
  45. <!-- <dependency>-->
  46. <!-- <groupId>org.jeecgframework.boot</groupId>-->
  47. <!-- <artifactId>jeecg-boot-starter-job</artifactId>-->
  48. <!-- </dependency>-->
  49. <!-- 分布式锁依赖 -->
  50. <!-- <dependency>-->
  51. <!-- <groupId>org.jeecgframework.boot</groupId>-->
  52. <!-- <artifactId>jeecg-boot-starter-lock</artifactId>-->
  53. <!-- </dependency>-->
  54. </dependencies>
  55. <build>
  56. <resources>
  57. <resource>
  58. <directory>../../lib</directory>
  59. <targetPath>BOOT-INF/lib/</targetPath>
  60. <includes>
  61. <include>**/*.jar</include>
  62. </includes>
  63. </resource>
  64. <resource>
  65. <directory>src/main/resources</directory>
  66. <!--先排除所有的配置文件-->
  67. <excludes>
  68. <exclude>application*.yml</exclude>
  69. </excludes>
  70. </resource>
  71. <resource>
  72. <directory>src/main/resources</directory>
  73. <!--引入所需环境的配置文件-->
  74. <filtering>true</filtering>
  75. <includes>
  76. <include>application.yml</include>
  77. <include>application-${activatedProperties}.yml</include>
  78. </includes>
  79. </resource>
  80. </resources>
  81. <plugins>
  82. <plugin>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-maven-plugin</artifactId>
  85. <configuration>
  86. <includeSystemScope>true</includeSystemScope>
  87. </configuration>
  88. </plugin>
  89. </plugins>
  90. </build>
  91. <!-- 环境 -->
  92. <profiles>
  93. <!-- 开发 -->
  94. <profile>
  95. <id>dev-bak</id>
  96. <properties>
  97. <activatedProperties>dev-bak</activatedProperties>
  98. </properties>
  99. </profile>
  100. <!-- 测试 -->
  101. <profile>
  102. <id>test</id>
  103. <properties>
  104. <activatedProperties>test</activatedProperties>
  105. </properties>
  106. </profile>
  107. <!-- 生产 -->
  108. <profile>
  109. <id>prod</id>
  110. <properties>
  111. <activatedProperties>prod</activatedProperties>
  112. </properties>
  113. </profile>
  114. </profiles>
  115. </project>