若依多模块 Maven 项目改为普通单模块Maven 项目

缺乏、安全感 2023-09-29 14:58 69阅读 0赞

pom.xml

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.5.13</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.ruoyi</groupId>
  12. <artifactId>springbootruoyi</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>springbootruoyi</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-web</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-test</artifactId>
  31. <scope>test</scope>
  32. </dependency>
  33. <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
  34. <dependency>
  35. <groupId>mysql</groupId>
  36. <artifactId>mysql-connector-java</artifactId>
  37. <version>8.0.29</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-validation</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-data-redis</artifactId>
  46. <version>2.6.7</version>
  47. </dependency>
  48. <!-- SpringBoot的依赖配置-->
  49. <!-- https://mvnrepository.com/artifact/org.aspectj/aspectjrt -->
  50. <dependency>
  51. <groupId>org.aspectj</groupId>
  52. <artifactId>aspectjrt</artifactId>
  53. <version>1.9.9.1</version>
  54. <scope>runtime</scope>
  55. </dependency>
  56. <!-- https://mvnrepository.com/artifact/org.quartz-scheduler/quartz -->
  57. <dependency>
  58. <groupId>org.quartz-scheduler</groupId>
  59. <artifactId>quartz</artifactId>
  60. <version>2.3.2</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.aspectj</groupId>
  64. <artifactId>aspectjweaver</artifactId>
  65. </dependency>
  66. <!-- 阿里数据库连接池 -->
  67. <dependency>
  68. <groupId>com.alibaba</groupId>
  69. <artifactId>druid-spring-boot-starter</artifactId>
  70. <version>1.2.9</version>
  71. </dependency>
  72. <!-- 验证码 -->
  73. <dependency>
  74. <groupId>com.github.penggle</groupId>
  75. <artifactId>kaptcha</artifactId>
  76. <version>2.3.2</version>
  77. </dependency>
  78. <!-- Shiro核心框架 -->
  79. <dependency>
  80. <groupId>org.apache.shiro</groupId>
  81. <artifactId>shiro-core</artifactId>
  82. <version>1.9.0</version>
  83. </dependency>
  84. <!-- Shiro使用Spring框架 -->
  85. <dependency>
  86. <groupId>org.apache.shiro</groupId>
  87. <artifactId>shiro-spring</artifactId>
  88. <version>1.9.0</version>
  89. </dependency>
  90. <!-- Shiro使用EhCache缓存框架 -->
  91. <dependency>
  92. <groupId>org.apache.shiro</groupId>
  93. <artifactId>shiro-ehcache</artifactId>
  94. <version>1.9.0</version>
  95. </dependency>
  96. <!-- thymeleaf模板引擎和shiro框架的整合 -->
  97. <dependency>
  98. <groupId>com.github.theborakompanioni</groupId>
  99. <artifactId>thymeleaf-extras-shiro</artifactId>
  100. <version>2.1.0</version>
  101. </dependency>
  102. <!-- 解析客户端操作系统、浏览器等 -->
  103. <dependency>
  104. <groupId>eu.bitwalker</groupId>
  105. <artifactId>UserAgentUtils</artifactId>
  106. <version>1.21</version>
  107. </dependency>
  108. <!-- SpringBoot集成mybatis框架 -->
  109. <dependency>
  110. <groupId>org.mybatis.spring.boot</groupId>
  111. <artifactId>mybatis-spring-boot-starter</artifactId>
  112. <version>2.2.2</version>
  113. </dependency>
  114. <!-- pagehelper 分页插件 -->
  115. <dependency>
  116. <groupId>com.github.pagehelper</groupId>
  117. <artifactId>pagehelper-spring-boot-starter</artifactId>
  118. <version>1.4.2</version>
  119. </dependency>
  120. <!-- 获取系统信息 -->
  121. <dependency>
  122. <groupId>com.github.oshi</groupId>
  123. <artifactId>oshi-core</artifactId>
  124. <version>6.1.6</version>
  125. </dependency>
  126. <!-- Swagger3依赖 -->
  127. <dependency>
  128. <groupId>io.springfox</groupId>
  129. <artifactId>springfox-boot-starter</artifactId>
  130. <version>3.0.0</version>
  131. </dependency>
  132. <!-- io常用工具类 -->
  133. <dependency>
  134. <groupId>commons-io</groupId>
  135. <artifactId>commons-io</artifactId>
  136. <version>2.11.0</version>
  137. </dependency>
  138. <!-- 文件上传工具类 -->
  139. <dependency>
  140. <groupId>commons-fileupload</groupId>
  141. <artifactId>commons-fileupload</artifactId>
  142. <version>1.4</version>
  143. </dependency>
  144. <!-- excel工具 -->
  145. <dependency>
  146. <groupId>org.apache.poi</groupId>
  147. <artifactId>poi-ooxml</artifactId>
  148. <version>5.2.2</version>
  149. </dependency>
  150. <!-- velocity代码生成使用模板 -->
  151. <dependency>
  152. <groupId>org.apache.velocity</groupId>
  153. <artifactId>velocity-engine-core</artifactId>
  154. <version>2.3</version>
  155. </dependency>
  156. <!-- 阿里JSON解析器 -->
  157. <dependency>
  158. <groupId>com.alibaba</groupId>
  159. <artifactId>fastjson</artifactId>
  160. <version>1.2.80</version>
  161. <type>jar</type>
  162. </dependency>
  163. </dependencies>
  164. <build>
  165. <plugins>
  166. <plugin>
  167. <groupId>org.springframework.boot</groupId>
  168. <artifactId>spring-boot-maven-plugin</artifactId>
  169. </plugin>
  170. </plugins>
  171. </build>
  172. </project>

之后把所有模块的src目录合并到一个目录下

NetBeans 下多模块

832d9f7fba074d6880960220e4d017a4.png

NetBeans 下单模块

8dd19a5bf6ff458a9611397a327e2587.png

发表评论

表情:
评论列表 (有 0 条评论,69人围观)

还没有评论,来说两句吧...

相关阅读

    相关 Eclipse创建Maven模块项目

    在平时的Javaweb项目开发中为了便于后期的维护,我们一般会进行分层开发,最常见的就是分为domain(域模型层)、dao(数据库访问层)、service(业务逻辑层)、we