Building RapidMiner Plugin with Netbeans

From Rapid-I-Wiki

Jump to: navigation, search

This procedure was wirrtten for RapidMiner 4.2. Someone needs to check whether it works for RM5.

RapidMiner needs special entries in the manifest file for plugins. There is an easy (but not so obvious) way to build such a JAR file directly from Netbeans ( I assume that the plugin is a standalone Netbeans project with the RapidMiner/YALE jars added as Libraries.

1. In the files view open build.xml

2. Add a new target to the buildfile

The following code might serve as an example:

   <target name="-post-jar">
       <mkdir dir="${dist.dir}/plugin"/>
       <jar destfile="${dist.dir}/plugin/ais.jar"
           basedir="${build.dir}/classes" >
               <attribute name="Built-By" value="${}"/>
               <attribute name="Implementation-Vendor" value="Leibniz University Hannover, FG SIM"/>
               <attribute name="Implementation-Title" value="AIS Plugin"/>
               <attribute name="Implementation-Version" value="0.1"/>
               <attribute name="Implementation-URL" value=""/>
               <attribute name="RapidMiner-Version" value="4.2"/>
               <attribute name="RapidMiner-Type" value="RapidMiner_Plugin"/>

3. Make sure "Build JAR after compiling is checked in the Project Properties->Build->Packaging

4. Done. After building the project in Netbeans a RapidMiner compatible JAR file can be found in dist/plugin/ which can be directly copied to your RapidMiner's lib/plugin directory (Make sure to not use the .jar file in dist. This has a generic manifest and wil not be recognized as plugin by RapidMiner

Personal tools