使用ruoyi开发自己的功能时,需要新建模块,并且修改如下pom文件:
代码:
①admin模块:添加新模块依赖
1 2 3 4 5
| <dependency> <groupId>com.bcump</groupId> <artifactId>bcump-demo</artifactId> </dependency>
|
②父模块:添加新模块依赖
1 2 3 4 5 6
| <dependency> <groupId>com.bcump</groupId> <artifactId>bcump-demo</artifactId> <version>${bcump.version}</version> </dependency>
|
③新模块:引入common包
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <artifactId>bcump</artifactId> <groupId>com.bcump</groupId> <version>1.0.0</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>bcump-demo</artifactId>
<description> demo </description> <dependencies> <dependency> <groupId>com.bcump</groupId> <artifactId>bcump-common</artifactId> </dependency> </dependencies> </project>
|