若依官网文档【文档地址】
只需要打包ruoyi-admin包即可。
ruoyi-admin下的pom文件需要配置build...configuration.mainClass节点配置class main入口文件的类
#ruoyi-admin/pom.xml
<dependencies>
<!--…省略其他依赖……>
<!-- 新建自定义模块1-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>b2c-admin</artifactId>
<version>3.2.1</version>
</dependency>
<!-- 新建自定义模块2-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>feichuan-pachong</artifactId>
<version>3.2.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<mainClass>com.ruoyi.RuoYiApplication</mainClass>
<layout>ZIP</layout>
<classifier>exec</classifier>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
网友评论