pom.xml 4.2 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>yinet</artifactId>
  7. <groupId>com.yinet</groupId>
  8. <version>4.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>war</packaging>
  12. <artifactId>yinetGASMS</artifactId>
  13. <description>
  14. web服务入口
  15. </description>
  16. <dependencies>
  17. <!-- SpringBoot集成thymeleaf模板 -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  21. </dependency>
  22. <!-- spring-boot-devtools scope true-->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-devtools</artifactId>
  26. <scope>runtime</scope>
  27. </dependency>
  28. <!-- swagger2-->
  29. <dependency>
  30. <groupId>io.springfox</groupId>
  31. <artifactId>springfox-swagger2</artifactId>
  32. </dependency>
  33. <!--防止进入swagger页面报类型转换错误,排除2.9.2中的引用,手动增加1.5.21版本-->
  34. <dependency>
  35. <groupId>io.swagger</groupId>
  36. <artifactId>swagger-annotations</artifactId>
  37. <version>1.5.21</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>io.swagger</groupId>
  41. <artifactId>swagger-models</artifactId>
  42. <version>1.5.21</version>
  43. </dependency>
  44. <!-- swagger2-UI-->
  45. <dependency>
  46. <groupId>io.springfox</groupId>
  47. <artifactId>springfox-swagger-ui</artifactId>
  48. </dependency>
  49. <!-- 核心模块-->
  50. <dependency>
  51. <groupId>com.yinet</groupId>
  52. <artifactId>yinet-framework</artifactId>
  53. </dependency>
  54. <!-- 定时任务-->
  55. <dependency>
  56. <groupId>com.yinet</groupId>
  57. <artifactId>yinet-quartz</artifactId>
  58. </dependency>
  59. <!-- 代码生成-->
  60. <dependency>
  61. <groupId>com.yinet</groupId>
  62. <artifactId>yinet-generator</artifactId>
  63. </dependency>
  64. </dependencies>
  65. <build>
  66. <!-- 配置将哪些资源文件(静态文件/模板文件/mapper文件)加载到tomcat输出目录里 -->
  67. <resources>
  68. <!-- <resource>
  69. <directory>src/main/java</directory>&lt;!&ndash;java文件的路径&ndash;&gt;
  70. <includes>
  71. <include>**/*.*</include>
  72. </includes>
  73. &lt;!&ndash; <filtering>false</filtering>&ndash;&gt;
  74. </resource>-->
  75. <!-- <resource>
  76. <directory>src/main/resources</directory>&lt;!&ndash;资源文件的路径&ndash;&gt;
  77. <includes>
  78. <include>**/*.*</include>
  79. </includes>
  80. &lt;!&ndash; <filtering>false</filtering>&ndash;&gt;
  81. </resource>-->
  82. </resources>
  83. <plugins>
  84. <plugin>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-maven-plugin</artifactId>
  87. <version>2.1.1.RELEASE</version>
  88. <configuration>
  89. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  90. </configuration>
  91. <executions>
  92. <execution>
  93. <goals>
  94. <goal>repackage</goal>
  95. </goals>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-war-plugin</artifactId>
  102. <configuration>
  103. <failOnMissingWebXml>false</failOnMissingWebXml>
  104. <warName>${artifactId}</warName>
  105. </configuration>
  106. </plugin>
  107. </plugins>
  108. <finalName>${artifactId}</finalName>
  109. </build>
  110. </project>