pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. <!-- swagger3-->
  29. <!--<dependency>
  30. <groupId>io.springfox</groupId>
  31. <artifactId>springfox-boot-starter</artifactId>
  32. </dependency>-->
  33. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  34. <!--<dependency>
  35. <groupId>io.swagger</groupId>
  36. <artifactId>swagger-models</artifactId>
  37. <version>1.6.2</version>
  38. </dependency>-->
  39. <!-- Mysql驱动包 -->
  40. <dependency>
  41. <groupId>mysql</groupId>
  42. <artifactId>mysql-connector-java</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>com.alibaba.fastjson2</groupId>
  46. <artifactId>fastjson2</artifactId>
  47. </dependency>
  48. <!-- 核心模块-->
  49. <dependency>
  50. <groupId>com.project</groupId>
  51. <artifactId>project-framework</artifactId>
  52. </dependency>
  53. <!-- 定时任务-->
  54. <dependency>
  55. <groupId>com.project</groupId>
  56. <artifactId>project-quartz</artifactId>
  57. </dependency>
  58. <!-- 代码生成-->
  59. <dependency>
  60. <groupId>com.project</groupId>
  61. <artifactId>project-generator</artifactId>
  62. </dependency>
  63. <!-- 自定义项目模块 -->
  64. <dependency>
  65. <groupId>com.project</groupId>
  66. <artifactId>project-zcustom</artifactId>
  67. </dependency>
  68. <!-- 扩展功能 -->
  69. <dependency>
  70. <groupId>com.project</groupId>
  71. <artifactId>project-extend</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.xxl.job</groupId>
  75. <artifactId>project-xxl-job</artifactId>
  76. <version>3.8.3</version>
  77. </dependency>
  78. </dependencies>
  79. <build>
  80. <plugins>
  81. <plugin>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-maven-plugin</artifactId>
  84. <version>2.1.1.RELEASE</version>
  85. <configuration>
  86. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  87. <includeSystemScope>true</includeSystemScope>
  88. </configuration>
  89. <executions>
  90. <execution>
  91. <goals>
  92. <goal>repackage</goal>
  93. </goals>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-war-plugin</artifactId>
  100. <version>3.1.0</version>
  101. <configuration>
  102. <failOnMissingWebXml>false</failOnMissingWebXml>
  103. <warName>${project.artifactId}</warName>
  104. </configuration>
  105. </plugin>
  106. </plugins>
  107. <finalName>${parent.artifactId}</finalName>
  108. </build>
  109. </project>