The Source for Java Technology Collaboration
User: Password:



Kohsuke Kawaguchi

Kohsuke Kawaguchi's Blog

Introducing IntelliJ "build this maven module" plugin

Posted by kohsuke on November 27, 2007 at 01:04 PM | Comments (2)

IntelliJ 7.0 adds a great Maven integration, but IMO it's missing one crucial feature. That is, to build the Maven module that you just changed.

OK, so here's the scenario; you are working on a multi-module project, and you are debugging something. You found a problem in one of the modules, so you edit the file, install the module, and run the test program again. This works nicely from IntelliJ, except the "install the module" portion — for you to install the module, you have to find the right module from the tool window, and click the "install" target. This is tedious and annoying.

This plugin adds a "Install this module" menu item to the Build menu. You should also assign a keyboard short-cut to it(personally, I use F9 to go with F9=build theme.) When you click the menu item, based on the current active editor, it will figure out the Maven module that owns that file, then run the install goal against it.

To install this plugin, just head for your IntelliJ plugin manager and look for "maven build-this-module plugin"


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first)

  • Hi, Kohsuke,

    I wonder what do you need to install module for? All the changes in modules' sources are supposed to be available throughout the project.

    Thanks,

    Anton Makeev,
    IDEA Developer
    JetBrains, Inc
    http://www.jetbrains.com
    "Develop with pleasure!"

    Posted by: amakeev on November 29, 2007 at 06:40 AM


  • There are several cases:


    When I'm working on two inter-related projects in two different IntelliJ projects. If my change in the upstream project is needed by the downstream project, I need to first install that to the local repository.

    When I'm also using shell to launch a debugging session. For that to pick up changes I need to install new versions to the local repo.

    Posted by: kohsuke on November 29, 2007 at 09:27 AM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds