All Projects → shlxue → Mvnrunner

shlxue / Mvnrunner

Licence: mit
IntelliJ plugin for maven, building and run unit testing or main method, by mvn.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Mvnrunner

maven-archetypes-catalog-plugin
A plugin to enable IntelliJ IDEA to fetch external Maven Archetype Catalog files
Stars: ✭ 19 (+171.43%)
Mutual labels:  maven, intellij-plugin
intellij-quarkus
IntelliJ Quarkus Tools
Stars: ✭ 83 (+1085.71%)
Mutual labels:  maven, intellij-plugin
Intellij Key Promoter X
Modern IntelliJ plugin to learn shortcuts for buttons
Stars: ✭ 2,689 (+38314.29%)
Mutual labels:  shortcut, intellij-plugin
Ok Gradle
IntelliJ/Android Studio plugin for searching artifacts ids of popular Java libraries.
Stars: ✭ 664 (+9385.71%)
Mutual labels:  intellij-plugin, maven
Smartim4intellij
IntelliJ IDEA上的SmartIM(原SmartQQ)插件,可以在IDEA中使用QQ或微信聊天
Stars: ✭ 822 (+11642.86%)
Mutual labels:  intellij-plugin
Javafx Maven Plugin
Maven plugin for JavaFX
Stars: ✭ 764 (+10814.29%)
Mutual labels:  maven
Checkstyle Idea
CheckStyle plug-in for IntelliJ IDEA
Stars: ✭ 738 (+10442.86%)
Mutual labels:  intellij-plugin
Permissions Dispatcher Plugin
IntelliJ plugin for supporting PermissionsDispatcher
Stars: ✭ 704 (+9957.14%)
Mutual labels:  intellij-plugin
Android Cookbook Examples
Contributed code examples from O'Reilly Android Cookbook. See #user-content-table README below!
Stars: ✭ 935 (+13257.14%)
Mutual labels:  maven
Intellij jahia plugin
Jahia's definitions.cnd files syntax highlighting, code completion, and other amazing stuff
Stars: ✭ 19 (+171.43%)
Mutual labels:  intellij-plugin
Ezsql
PHP class to make interacting with a database ridiculusly easy
Stars: ✭ 804 (+11385.71%)
Mutual labels:  shortcut
Acejump
🅰️ single character search, select, and jump
Stars: ✭ 786 (+11128.57%)
Mutual labels:  intellij-plugin
Maven Min Plugin
📦 Latke application JavaScript and CSS files compression.
Stars: ✭ 5 (-28.57%)
Mutual labels:  maven
Elements Of Programming Interviews
Method stubs and test cases for the problems from Elements of Programming Interviews
Stars: ✭ 738 (+10442.86%)
Mutual labels:  maven
Maven Jar Plugin
Apache Maven JAR Plugin
Stars: ✭ 22 (+214.29%)
Mutual labels:  maven
Vue Shortkey
Vue-ShortKey - The ultimate shortcut plugin to improve the UX
Stars: ✭ 728 (+10300%)
Mutual labels:  shortcut
Tip
Programmable tooltip that can be used with any Mac OS app
Stars: ✭ 798 (+11300%)
Mutual labels:  shortcut
Runconfigurationasaction
Provides a way to use IntelliJ run configurations as buttons
Stars: ✭ 17 (+142.86%)
Mutual labels:  intellij-plugin
Idea Php Symfony2 Plugin
IntelliJ IDEA / PhpStorm Symfony Plugin
Stars: ✭ 797 (+11285.71%)
Mutual labels:  intellij-plugin
Jetbrains Wakatime
IntelliJ IDEA, PyCharm, RubyMine, PhpStorm, AppCode, AndroidStudio, Goland, Rider, & WebStorm plugin for quantifying your coding.
Stars: ✭ 796 (+11271.43%)
Mutual labels:  intellij-plugin

MvnRunner

a IntelliJ plugin for maven module, building, run unit testing and main method, by mvn.

插件做了什么?

针对 maven 管理的 Java 项目,添加 maven 模块构建菜单;在 Run 和 Debug 两个菜单项上新增 maven 的处理方式,根据上下文直接调用 maven 的原生命令来进行单元测试或 main 方法的运行,你仍然可以使用原有的处理方式运行。

需求

IntelliJ IDEA 12 及更高版本

依赖插件(__粗体__为必选插件):

  • Maven Integration
  • UML Support
  • Maven Integration Extension

安装

  • 插件仓库安装:菜单中选择 Preferences/Plugins/Browser repositories, 查找 Maven Runner 并安装
  • 磁盘安装下载地址:JetBrains Plugin Repository

功能

  1. 新增 Run 及 Debug 两个菜单项的处理方式,以原生的 mvn 命令来执行相同的操作。
  • 支持单个方法、类、包及整个模块的单元测试。
  • 支持 main 方法的运行。
  • 支持 jetty 及 tomcat 运行,如果配置 jetty-maven-plugin 或 tomcat6/7-maven-plugin。
  • 允许配置 fork 模式(配置均属 application level, Preferences/Maven/Importing)
  • 为 maven 构建添加 Quick switch popup menu(shortcut: ^M)
  • maven 构建菜单添加到 Build main menu 中(shortcut: ^⌘+ C/P/T/I)
  • 通过 Quick switch popup menu 快速执行 plugin goals(shortcut: ^P)
  • 支持快速查看 module 依赖(在 pom.xml 或 maven 项目列表上显示所有依赖,否则只显示模块依赖。 shortcut: ^⌘U)
  • 通过 maven 坐标快速打开 POM 文件(shortcut: ^⌘M)

FAQ

  1. 为什么要为这些菜单项增加 maven 的处理方式?
    • IntelliJ 默认的 Run/Debug 是解析本模块中 pom 依赖信息后,再生成 classpath 对应的列表,最终以 com.intellij 下面的 mainClass 来执行。
    • 默认处理方式无法正确的处理 maven 的级联依赖 jar 包。
    • 部分 maven 插件依赖运行期读取信息的情况 IntelliJ 默认执行方式无法正确处理。
    • 增加的 maven 处理方式是直接调用 mvn 命令中的 mainClass 来执行相同的操作。
  • 如何配置让 Jetty 或 Tomcat 可以调试运行?
    • 在 pom 文件中配置 jetty-maven-plugin 或 tomcat6/7-maven-plugin。
    • 两者的启动配置完全依赖于 pom 文件中上述两个 maven 构建插件的配置。
  • 添加 maven 构建菜单的目的?
    • 根据当前编辑或选择的上下文,自动选择当前 module 并构建。
    • Maven projects 上的构建操作达不到快捷的目标。
  • 为什么需要这个插件?
    • 你不用再为了运行单元测试而去修改 pom.xml,让 pom 每天都保持清爽吧。
    • IntelliJ 平台为 maven 项目提供更完美的支持。

Screenshot

  1. All Tests

    All_tests_popup_menu

  • Test package

    Test_package_popup_menu

  • Folding java command

    Folding java command

  • Run/Debug Configurations

    Run_Configurations

  • Run Jetty or Tomcat

    Run_Jetty_Tomcat

  • Preferences

    Preferences

  • Quick switch popup menu

    Quick switch popup menu

  • Quick run plugin goals

    Quick run plugin goals

  • Build menu

    Build menu

  • Quick open pom

    Quick open pom

相关资源

  1. IntelliJ IDEA Build Number Ranges
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].