RuoYi-Vue-Plus Module Fast Generator is an IntelliJ IDEA plugin designed to streamline the creation of new modules in RuoYi-Vue-Plus projects. It automates the tedious process of manually creating module structures, updating POM files, and configuring project dependencies.
This plugin helps developers to:
- Create new modules with standardized structure in seconds
- Automatically update all necessary POM files
- Configure dependencies based on predefined templates
- Refresh and import Maven projects seamlessly
- Delete unwanted modules with a single click
- One-click Module Generation: Create complete module structures with a simple dialog
- Smart Module Detection: Handles existing modules gracefully without conflicts
- Flexible Dependency Configuration: Choose from predefined dependency templates or use defaults
- Automatic POM Updates: Updates root POM, modules POM, and admin POM automatically
- Project Refresh: Ensures all changes are properly recognized by Maven
- Package Structure Creation: Generates standard package structure (controller, service, mapper, etc.)
- One-click Module Deletion: Right-click to safely delete generated modules
- Keyboard Shortcuts: Provides shortcut (Alt+Q) for quick access to module generation
- Custom Module Prefix: Support for configuring custom module name prefixes
-
Using IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "RuoYi-Vue-Plus Module Fast Generator" > Install
- Open your RuoYi-Vue-Plus project in IntelliJ IDEA
- Choose one of the following to open the module generation dialog:
- Navigate to Tools > Generate RuoYi Module
- Use shortcut Alt+Q (Windows/Linux) or ⌘⌥Q (Mac)
- Right-click in the Project window and select Generate Ruoyi-Vue-plus Module
- Enter the module name (prefix will be added automatically if not included)
- Select dependency configuration template (optional)
- Click OK
- The plugin will create the module and update all necessary files
- Maven will automatically import the new module
- In the Project window, right-click on the module you want to delete
- Select Delete Module [module name] option
- Confirm the deletion
- The plugin will safely delete the module and all its references
- Navigate to Settings/Preferences > Tools > Ruoyi-Vue-plus Module Dependency Configuration
- From this page you can:
- Add, edit, or delete dependency configuration templates
- Set the default module prefix
- Configure default dependencies
- IntelliJ IDEA 2024.1+
- Java 11+
- Maven 3.6+
- RuoYi-Vue-Plus project
Contributions are welcome! If you'd like to contribute, please:
- Fork the repository
- Create a feature branch
- Submit a pull request
This project is licensed under the Apache License 2.0.
RuoYi-Vue-Plus 模块快速生成器是一个 IntelliJ IDEA 插件,专为简化 RuoYi-Vue-Plus 项目中新模块的创建而设计。它自动化了手动创建模块结构、更新 POM 文件和配置项目依赖的繁琐过程。
这个插件可以帮助开发者:
- 几秒钟内创建具有标准结构的新模块
- 自动更新所有必要的 POM 文件
- 基于预定义模板配置依赖
- 无缝刷新和导入 Maven 项目
- 一键删除不需要的模块
- 一键模块生成:通过简单对话框创建完整的模块结构
- 智能模块检测:优雅处理已存在的模块,避免冲突
- 灵活的依赖配置:可以选择预定义的依赖模板或使用默认值
- 自动 POM 更新:自动更新根 POM、modules POM 和 admin POM
- 项目刷新:确保 Maven 正确识别所有更改
- 包结构创建:生成标准包结构(controller、service、mapper等)
- 一键模块删除:右键点击即可安全删除已生成的模块
- 快捷键支持:提供快捷键(Alt+Q)快速访问模块生成功能
- 自定义模块前缀:支持配置自定义的模块名称前缀
-
使用 IDE 内置插件系统:
设置/首选项 > 插件 > 市场 > 搜索 "RuoYi-Vue-Plus Module Fast Generator" > 安装
- 在 IntelliJ IDEA 中打开你的 RuoYi-Vue-Plus 项目
- 选择以下任一方式打开模块生成对话框:
- 导航至 工具 > 生成 RuoYi 模块
- 使用快捷键 Alt+Q(Windows/Linux)或 ⌘⌥Q(Mac)
- 在项目窗口中右键点击,选择 Generate Ruoyi-Vue-plus Module
- 输入模块名称(如果未包含前缀,将自动添加)
- 选择依赖配置模板(可选)
- 点击 确定
- 插件将创建模块并更新所有必要文件
- Maven 将自动导入新模块
- 在项目窗口中,右键点击要删除的模块
- 选择 删除模块[模块名] 选项
- 确认删除操作
- 插件将安全删除模块及其所有相关引用
- 导航至 设置/首选项 > 工具 > Ruoyi-Vue-plus Module Dependency Configuration
- 在此页面可以:
- 添加、编辑或删除依赖配置模板
- 设置默认模块前缀
- 配置默认依赖
- IntelliJ IDEA 2024.1+
- Java 11+
- Maven 3.6+
- RuoYi-Vue-Plus 项目
欢迎贡献!如果您想贡献,请:
- Fork 仓库
- 创建功能分支
- 提交 Pull Request
本项目采用 Apache License 2.0 许可证。