pom.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.poyee</groupId>
  8. <artifactId>poyee-dashboard</artifactId>
  9. <version>1.0-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>py-starter</artifactId>
  12. <name>启动模块</name>
  13. <description>启动模块</description>
  14. <dependencies>
  15. <!--springboot-->
  16. <dependency>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-starter-web</artifactId>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-validation</artifactId>
  23. </dependency>
  24. <!--热更新-->
  25. <!--<dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-devtools</artifactId>
  28. </dependency>-->
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-test</artifactId>
  32. <scope>test</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-actuator</artifactId>
  37. </dependency>
  38. <!--base-->
  39. <dependency>
  40. <groupId>com.poyee</groupId>
  41. <artifactId>py-base</artifactId>
  42. </dependency>
  43. </dependencies>
  44. <build>
  45. <plugins>
  46. <plugin>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-maven-plugin</artifactId>
  49. <version>2.1.1.RELEASE</version>
  50. <configuration>
  51. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  52. <includeSystemScope>true</includeSystemScope>
  53. </configuration>
  54. <executions>
  55. <execution>
  56. <goals>
  57. <goal>repackage</goal>
  58. </goals>
  59. </execution>
  60. </executions>
  61. </plugin>
  62. <plugin>
  63. <groupId>org.apache.maven.plugins</groupId>
  64. <artifactId>maven-war-plugin</artifactId>
  65. <version>3.0.0</version>
  66. <configuration>
  67. <failOnMissingWebXml>false</failOnMissingWebXml>
  68. <warName>${project.artifactId}</warName>
  69. </configuration>
  70. </plugin>
  71. </plugins>
  72. <finalName>${project.artifactId}</finalName>
  73. </build>
  74. </project>