Building Mevenide 2 for Netbeans

These are instructions to build Mevenide2, the support for Maven 2.

You can get daily build binaries at deadlock.netbeans.org .

Prerequisites

  • Make sure you've installed at least Maven 2.0.9
  • Download and install Netbeans 6.0/6.1 final build.
  • Create a file ~/.m2/settings.xml if you don't have it yet. A brand new one should look like this:
    <settings>
        <pluginGroups>
            <pluginGroup>org.codehaus.mojo</pluginGroup>
        </pluginGroups>
    </settings>

    If you have one existing, just add the pluginGroup.

Checkout

  • Checkout modules required for the Mevenide 2:
    svn co http://svn.codehaus.org/mevenide/trunk/mevenide2

Building

  • Go to the created mevenide2 directory and run
    mvn install nbm:directory nbm:cluster

    That one should build the whole netbeans support. Make sure you are online when building for the first time, it will download multiple netbeans API artifacts. In the mevenide2 directory, you will have a new directory created: target/netbeans_clusters/mevenide with the binaries of mevenide2.

Running

  • To run in netbeans, edit it's netbeans/etc/netbeans.conf file,
    # clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)
    netbeans_extraclusters="$MAKE_THE_PATH_ABSOLUTE_TO_YOUR_CHECKOUT$/mevenide2/target/netbeans_clusters/mevenide"

    then just run netbeans.

    Be Carefull
    For testing purposes and to prevent clashes with existing old setup, use the -userdir new_user_dir command line switch when running netbeans.