pom.xml 5.1 KB

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