pom.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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>my</artifactId>
  7. <groupId>com.my</groupId>
  8. <version>3.8.8</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>war</packaging>
  12. <artifactId>my-admin</artifactId>
  13. <description>
  14. web服务入口
  15. </description>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.dameng</groupId>
  19. <artifactId>DmJdbcDriver18</artifactId>
  20. <version>8.1.2.141</version>
  21. </dependency>
  22. <!-- spring-boot-devtools -->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-devtools</artifactId>
  26. <optional>false</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. <!-- 核心模块-->
  45. <dependency>
  46. <groupId>com.my</groupId>
  47. <artifactId>my-framework</artifactId>
  48. <version>${my.version}</version>
  49. </dependency>
  50. <!-- 定时任务-->
  51. <dependency>
  52. <groupId>com.my</groupId>
  53. <artifactId>my-quartz</artifactId>
  54. <version>${my.version}</version>
  55. </dependency>
  56. <!-- 代码生成-->
  57. <dependency>
  58. <groupId>com.my</groupId>
  59. <artifactId>my-generator</artifactId>
  60. <version>${my.version}</version>
  61. </dependency>
  62. <!-- 业务模块-->
  63. <dependency>
  64. <groupId>com.my</groupId>
  65. <artifactId>my-bus</artifactId>
  66. <version>${my.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>h4a-sdk</groupId>
  70. <artifactId>h4a-sdk</artifactId>
  71. <version>1.0.6</version>
  72. <scope>system</scope>
  73. <systemPath>${pom.basedir}/src/main/resources/lib/h4a-sdk-1.0.6.jar</systemPath>
  74. </dependency>
  75. <dependency>
  76. <groupId>sso-sdk</groupId>
  77. <artifactId>sso-sdk</artifactId>
  78. <version>1.0.8</version>
  79. <scope>system</scope>
  80. <systemPath>${pom.basedir}/src/main/resources/lib/sso-sdk-1.0.8.jar</systemPath>
  81. </dependency>
  82. <dependency>
  83. <groupId>config-sdk</groupId>
  84. <artifactId>config-sdk</artifactId>
  85. <version>1.0.6</version>
  86. <scope>system</scope>
  87. <systemPath>${pom.basedir}/src/main/resources/lib/config-sdk-1.0.6.jar</systemPath>
  88. </dependency>
  89. </dependencies>
  90. <build>
  91. <plugins>
  92. <plugin>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-maven-plugin</artifactId>
  95. <version>2.5.15</version>
  96. <configuration>
  97. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  98. </configuration>
  99. <executions>
  100. <execution>
  101. <goals>
  102. <goal>repackage</goal>
  103. </goals>
  104. </execution>
  105. </executions>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.apache.maven.plugins</groupId>
  109. <artifactId>maven-war-plugin</artifactId>
  110. <version>3.1.0</version>
  111. <configuration>
  112. <failOnMissingWebXml>false</failOnMissingWebXml>
  113. <warName>${project.artifactId}</warName>
  114. <webResources>
  115. <resource>
  116. <directory>${pom.basedir}/src/main/resources/lib</directory>
  117. <targetPath>WEB-INF/lib</targetPath>
  118. <filtering>false</filtering>
  119. <includes>
  120. <include>**/*.jar</include>
  121. </includes>
  122. </resource>
  123. <resource>
  124. <directory>${pom.basedir}/src/main/resources/config</directory>
  125. <targetPath>WEB-INF/config</targetPath>
  126. <filtering>false</filtering>
  127. <includes>
  128. <include>**/*.xml</include>
  129. </includes>
  130. </resource>
  131. </webResources>
  132. <failOnMissingWebXml>false</failOnMissingWebXml>
  133. </configuration>
  134. </plugin>
  135. </plugins>
  136. <finalName>${project.artifactId}</finalName>
  137. </build>
  138. </project>