pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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>ruoyi</artifactId>
  7. <groupId>com.ruoyi</groupId>
  8. <version>4.7.8</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>ruoyi-admin</artifactId>
  13. <description>
  14. web服务入口
  15. </description>
  16. <dependencies>
  17. <dependency>
  18. <groupId>cn.hutool</groupId>
  19. <artifactId>hutool-all</artifactId>
  20. <version>5.8.18</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.google.code.gson</groupId>
  24. <artifactId>gson</artifactId>
  25. <version>2.9.1</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-test</artifactId>
  30. <scope>test</scope>
  31. </dependency>
  32. <!-- SpringBoot集成thymeleaf模板 -->
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  36. </dependency>
  37. <!-- spring-boot-devtools -->
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-devtools</artifactId>
  41. <optional>true</optional> <!-- 表示依赖不会传递 -->
  42. </dependency>
  43. <!-- swagger3-->
  44. <dependency>
  45. <groupId>io.springfox</groupId>
  46. <artifactId>springfox-boot-starter</artifactId>
  47. </dependency>
  48. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  49. <dependency>
  50. <groupId>io.swagger</groupId>
  51. <artifactId>swagger-models</artifactId>
  52. <version>1.6.2</version>
  53. </dependency>
  54. <!-- Mysql驱动包 -->
  55. <dependency>
  56. <groupId>mysql</groupId>
  57. <artifactId>mysql-connector-java</artifactId>
  58. </dependency>
  59. <!--sqlserver数据库配置-->
  60. <dependency>
  61. <groupId>com.microsoft.sqlserver</groupId>
  62. <artifactId>mssql-jdbc</artifactId>
  63. </dependency>
  64. <!-- 核心模块-->
  65. <dependency>
  66. <groupId>com.ruoyi</groupId>
  67. <artifactId>ruoyi-framework</artifactId>
  68. </dependency>
  69. <!-- 定时任务-->
  70. <dependency>
  71. <groupId>com.ruoyi</groupId>
  72. <artifactId>ruoyi-quartz</artifactId>
  73. </dependency>
  74. <!-- 代码生成-->
  75. <dependency>
  76. <groupId>com.ruoyi</groupId>
  77. <artifactId>ruoyi-generator</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.projectlombok</groupId>
  81. <artifactId>lombok</artifactId>
  82. </dependency>
  83. </dependencies>
  84. <build>
  85. <plugins>
  86. <plugin>
  87. <groupId>org.springframework.boot</groupId>
  88. <artifactId>spring-boot-maven-plugin</artifactId>
  89. <version>2.5.15</version>
  90. <configuration>
  91. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  92. </configuration>
  93. <executions>
  94. <execution>
  95. <goals>
  96. <goal>repackage</goal>
  97. </goals>
  98. </execution>
  99. </executions>
  100. </plugin>
  101. <plugin>
  102. <groupId>org.apache.maven.plugins</groupId>
  103. <artifactId>maven-war-plugin</artifactId>
  104. <version>3.0.0</version>
  105. <configuration>
  106. <failOnMissingWebXml>false</failOnMissingWebXml>
  107. <warName>${project.artifactId}</warName>
  108. </configuration>
  109. </plugin>
  110. <!-- YUI Compressor (CSS/JS压缩)
  111. <plugin>
  112. <groupId>net.alchim31.maven</groupId>
  113. <artifactId>yuicompressor-maven-plugin</artifactId>
  114. <version>1.5.1</version>
  115. <executions>
  116. <execution>
  117. <phase>prepare-package</phase>
  118. <goals>
  119. <goal>compress</goal>
  120. </goals>
  121. </execution>
  122. </executions>
  123. <configuration>
  124. <encoding>UTF-8</encoding>
  125. <jswarn>false</jswarn>
  126. <nosuffix>true</nosuffix>
  127. <linebreakpos>50000</linebreakpos>
  128. <sourceDirectory>src/main/resources/static</sourceDirectory>
  129. <force>true</force>
  130. <includes>
  131. <include>**/*.js</include>
  132. <include>**/*.css</include>
  133. </includes>
  134. <excludes>
  135. <exclude>**/*.min.js</exclude>
  136. <exclude>**/*.min.css</exclude>
  137. <exclude>**/fileinput.js</exclude>
  138. <exclude>**/bootstrap-table/**</exclude>
  139. </excludes>
  140. </configuration>
  141. </plugin> -->
  142. </plugins>
  143. <finalName>twin</finalName>
  144. </build>
  145. </project>