pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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>centreproject</artifactId>
  7. <groupId>com.centreproject</groupId>
  8. <version>3.9.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>centreproject-admin</artifactId>
  13. <description>
  14. web
  15. </description>
  16. <dependencies>
  17. <!-- spring-boot-devtools -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-devtools</artifactId>
  21. <optional>true</optional> <!-- 表示依赖不会传递 -->
  22. </dependency>
  23. <dependency>
  24. <groupId>com.xuxueli</groupId>
  25. <artifactId>xxl-job-core</artifactId>
  26. </dependency>
  27. <!-- spring-doc -->
  28. <dependency>
  29. <groupId>org.springdoc</groupId>
  30. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  31. </dependency>
  32. <!-- Mysql驱动包 -->
  33. <dependency>
  34. <groupId>com.mysql</groupId>
  35. <artifactId>mysql-connector-j</artifactId>
  36. </dependency>
  37. <!-- <dependency>-->
  38. <!-- <groupId>com.databricks</groupId>-->
  39. <!-- <artifactId>databricks-jdbc</artifactId>-->
  40. <!-- </dependency>-->
  41. <!-- 核心模块-->
  42. <dependency>
  43. <groupId>com.centreproject</groupId>
  44. <artifactId>centreproject-framework</artifactId>
  45. </dependency>
  46. </dependencies>
  47. <profiles>
  48. <profile>
  49. <id>dev</id>
  50. <activation>
  51. <activeByDefault>true</activeByDefault>
  52. </activation>
  53. <properties>
  54. <activatedProperties>dev</activatedProperties>
  55. </properties>
  56. </profile>
  57. <profile>
  58. <id>prod</id>
  59. <properties>
  60. <activatedProperties>prod</activatedProperties>
  61. <maven.test.skip>true</maven.test.skip>
  62. </properties>
  63. </profile>
  64. </profiles>
  65. <build>
  66. <resources>
  67. <resource>
  68. <directory>src/main/resources</directory>
  69. <filtering>true</filtering>
  70. <includes>
  71. <include>application.yml</include>
  72. <include>application-${activatedProperties}.yml</include>
  73. </includes>
  74. </resource>
  75. <resource>
  76. <directory>src/main/resources</directory>
  77. <filtering>false</filtering> <!-- 其他资源不启用过滤 -->
  78. <excludes>
  79. <exclude>application.yml</exclude>
  80. <exclude>application-*.yml</exclude>
  81. </excludes>
  82. </resource>
  83. </resources>
  84. <plugins>
  85. <plugin>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-maven-plugin</artifactId>
  88. <version>2.5.15</version>
  89. <configuration>
  90. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  91. </configuration>
  92. <executions>
  93. <execution>
  94. <goals>
  95. <goal>repackage</goal>
  96. </goals>
  97. </execution>
  98. </executions>
  99. </plugin>
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-war-plugin</artifactId>
  103. <version>3.1.0</version>
  104. <configuration>
  105. <failOnMissingWebXml>false</failOnMissingWebXml>
  106. <warName>${project.artifactId}</warName>
  107. </configuration>
  108. </plugin>
  109. </plugins>
  110. <finalName>${project.artifactId}</finalName>
  111. </build>
  112. </project>