pom.xml 2.4 KB

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