文件服务后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

147 lines
5.0 KiB

  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>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>file_transfer</artifactId>
  13. <name>ruoyi-admin</name>
  14. <description>
  15. web服务入口
  16. </description>
  17. <dependencies>
  18. <!-- SpringBoot集成thymeleaf模板 -->
  19. <dependency>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  22. </dependency>
  23. <!-- spring-boot-devtools -->
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-devtools</artifactId>
  27. <optional>true</optional> <!-- 表示依赖不会传递 -->
  28. </dependency>
  29. <!-- swagger3-->
  30. <dependency>
  31. <groupId>io.springfox</groupId>
  32. <artifactId>springfox-boot-starter</artifactId>
  33. </dependency>
  34. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  35. <dependency>
  36. <groupId>io.swagger</groupId>
  37. <artifactId>swagger-models</artifactId>
  38. <version>1.6.2</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.github.xiaoymin</groupId>
  42. <artifactId>knife4j-spring-boot-starter</artifactId>
  43. <version>3.0.3</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-generator</artifactId>
  64. </dependency>
  65. <!-- 工具 -->
  66. <dependency>
  67. <groupId>com.ruoyi</groupId>
  68. <artifactId>ruoyi-tool</artifactId>
  69. <version>1.0.0</version>
  70. </dependency>
  71. <!-- 文件 -->
  72. <dependency>
  73. <groupId>com.ruoyi</groupId>
  74. <artifactId>ruoyi-file</artifactId>
  75. </dependency>
  76. </dependencies>
  77. <build>
  78. <!-- jar 文件名 -->
  79. <finalName>${project.name}-${project.version}</finalName>
  80. <plugins>
  81. <plugin>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-maven-plugin</artifactId>
  84. <version>2.5.15</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-surefire-plugin</artifactId>
  99. <version>2.5</version>
  100. <configuration>
  101. <skipTests>true</skipTests>
  102. </configuration>
  103. </plugin>
  104. <!--自动打包部署-->
  105. <plugin>
  106. <artifactId>maven-assembly-plugin</artifactId>
  107. <configuration>
  108. <!-- 设置打包后的文件名 -->
  109. <finalName>${project.artifactId}-${project.version}</finalName>
  110. <!-- 不添加assembly的id到打包后的文件名称中 -->
  111. <appendAssemblyId>false</appendAssemblyId>
  112. <descriptors>
  113. <!-- assembly.xml主要包含内容:打包后的文件格式、都包含哪些文件、不同文件的目录(如bin、lib、conf、README.md)、权限等 -->
  114. <descriptor>src/main/resources/assembly.xml</descriptor>
  115. </descriptors>
  116. <outputDirectory>${project.parent.basedir}/target/distributions/</outputDirectory>
  117. </configuration>
  118. <executions>
  119. <execution>
  120. <id>make-assembly</id>
  121. <phase>package</phase>
  122. <goals>
  123. <goal>single</goal>
  124. </goals>
  125. </execution>
  126. </executions>
  127. </plugin>
  128. </plugins>
  129. </build>
  130. </project>