pom.xml 5.3 KB

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