pom.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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>project-service</artifactId>
  7. <groupId>com.project</groupId>
  8. <version>3.8.3</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>war</packaging>
  12. <artifactId>project-admin</artifactId>
  13. <description>
  14. web服务入口
  15. </description>
  16. <dependencies>
  17. <!-- spring-boot-test -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-test</artifactId>
  21. </dependency>
  22. <!-- spring-boot-devtools -->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-devtools</artifactId>
  26. <optional>true</optional> <!-- 表示依赖不会传递 -->
  27. </dependency>
  28. <!-- Mysql驱动包 -->
  29. <dependency>
  30. <groupId>mysql</groupId>
  31. <artifactId>mysql-connector-java</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.alibaba.fastjson2</groupId>
  35. <artifactId>fastjson2</artifactId>
  36. </dependency>
  37. <!-- 核心模块-->
  38. <dependency>
  39. <groupId>com.project</groupId>
  40. <artifactId>project-framework</artifactId>
  41. </dependency>
  42. <!-- 定时任务-->
  43. <dependency>
  44. <groupId>com.project</groupId>
  45. <artifactId>project-quartz</artifactId>
  46. </dependency>
  47. <!-- 自定义项目模块 -->
  48. <dependency>
  49. <groupId>com.project</groupId>
  50. <artifactId>project-zcustom</artifactId>
  51. </dependency>
  52. <!--<dependency>
  53. <groupId>com.xxl.job</groupId>
  54. <artifactId>project-xxl-job</artifactId>
  55. <version>3.8.3</version>
  56. </dependency>-->
  57. </dependencies>
  58. <build>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-maven-plugin</artifactId>
  63. <version>2.1.1.RELEASE</version>
  64. <configuration>
  65. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  66. <includeSystemScope>true</includeSystemScope>
  67. </configuration>
  68. <executions>
  69. <execution>
  70. <goals>
  71. <goal>repackage</goal>
  72. </goals>
  73. </execution>
  74. </executions>
  75. </plugin>
  76. <plugin>
  77. <groupId>org.apache.maven.plugins</groupId>
  78. <artifactId>maven-war-plugin</artifactId>
  79. <version>3.1.0</version>
  80. <configuration>
  81. <failOnMissingWebXml>false</failOnMissingWebXml>
  82. <warName>${project.artifactId}</warName>
  83. </configuration>
  84. </plugin>
  85. </plugins>
  86. <finalName>${parent.artifactId}</finalName>
  87. </build>
  88. </project>