pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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>ax-beidou</artifactId>
  7. <groupId>cn.com.taiji</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>beidou-admin</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 -->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-devtools</artifactId>
  26. <optional>true</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. <exclusions>
  39. <exclusion>
  40. <groupId>com.fasterxml.jackson.core</groupId>
  41. <artifactId>jackson-databind</artifactId>
  42. </exclusion>
  43. </exclusions>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.github.xiaoymin</groupId>
  47. <artifactId>knife4j-spring-ui</artifactId>
  48. <version>3.0.3</version>
  49. </dependency>
  50. <!-- Mysql驱动包 -->
  51. <dependency>
  52. <groupId>mysql</groupId>
  53. <artifactId>mysql-connector-java</artifactId>
  54. </dependency>
  55. <!-- 核心模块-->
  56. <dependency>
  57. <groupId>cn.com.taiji</groupId>
  58. <artifactId>beidou-framework</artifactId>
  59. </dependency>
  60. <!-- 定时任务-->
  61. <dependency>
  62. <groupId>cn.com.taiji</groupId>
  63. <artifactId>beidou-quartz</artifactId>
  64. </dependency>
  65. <!-- 代码生成-->
  66. <dependency>
  67. <groupId>cn.com.taiji</groupId>
  68. <artifactId>beidou-generator</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>cn.com.taiji</groupId>
  72. <artifactId>beidou-ship</artifactId>
  73. </dependency>
  74. </dependencies>
  75. <build>
  76. <plugins>
  77. <plugin>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-maven-plugin</artifactId>
  80. <version>2.1.1.RELEASE</version>
  81. <configuration>
  82. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  83. </configuration>
  84. <executions>
  85. <execution>
  86. <goals>
  87. <goal>repackage</goal>
  88. </goals>
  89. </execution>
  90. </executions>
  91. </plugin>
  92. <plugin>
  93. <groupId>org.apache.maven.plugins</groupId>
  94. <artifactId>maven-war-plugin</artifactId>
  95. <version>3.0.0</version>
  96. <configuration>
  97. <failOnMissingWebXml>false</failOnMissingWebXml>
  98. <warName>${project.artifactId}</warName>
  99. </configuration>
  100. </plugin>
  101. <!-- YUI Compressor (CSS/JS压缩)
  102. <plugin>
  103. <groupId>net.alchim31.maven</groupId>
  104. <artifactId>yuicompressor-maven-plugin</artifactId>
  105. <version>1.5.1</version>
  106. <executions>
  107. <execution>
  108. <phase>prepare-package</phase>
  109. <goals>
  110. <goal>compress</goal>
  111. </goals>
  112. </execution>
  113. </executions>
  114. <configuration>
  115. <encoding>UTF-8</encoding>
  116. <jswarn>false</jswarn>
  117. <nosuffix>true</nosuffix>
  118. <linebreakpos>50000</linebreakpos>
  119. <sourceDirectory>src/main/resources/static</sourceDirectory>
  120. <force>true</force>
  121. <includes>
  122. <include>**/*.js</include>
  123. <include>**/*.css</include>
  124. </includes>
  125. <excludes>
  126. <exclude>**/*.min.js</exclude>
  127. <exclude>**/*.min.css</exclude>
  128. <exclude>**/fileinput.js</exclude>
  129. <exclude>**/bootstrap-table/**</exclude>
  130. </excludes>
  131. </configuration>
  132. </plugin> -->
  133. </plugins>
  134. <finalName>${project.artifactId}</finalName>
  135. </build>
  136. </project>