pom.xml 2.7 KB

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