Message-ID: <2046261784.11243.1406572984931.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_11242_1167329647.1406572984931" ------=_Part_11242_1167329647.1406572984931 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This is a step by step guide on developing Netbeans modules (plugins) us=
ing Maven and Mevenide. It doesn't matter if the module is for Netbeans IDE=
or your custom application based on Netbeans Platform.
The tutorial = assumes basic knowledge module development as described on netbeans.org sit= e (Api List page and openide site in= general). In this text below we discuss the specific issues of building Ne= tbeans modules using Maven, not how to use the APIs to create a module.
Installing Maven is rather straightforward, just follow instructions.
It's important that you setup the MAVEN_HOME e= nvironment property (Windows installer does it for you).
If you are b= ehind firewall, you should setup = Maven to use your proxy settings. It's best done by creating a file nam= ed build.properties in your user home directory and popula= te it with the required proxy related properties.
First download the latest Mevenide release.
This tutorial assumes you have installed Mevenide for Netbeans, however = the same can be achieved through the Mevenide for Eclipse with minor variat= ions, in case you want to develop Netbeans modules with that IDE.
On the command-line, run this command which downloads the appropriate ma= ven plugin for creating Netbeans modules:=20 =20
Assuming you already have the Netbeans IDE or Netbeans Platform that you= want to develop against, please recall it's installation directory. If you= don't have it, please install it first.=20
Run goal=20 =20
. It will prompt you for the installation directory. Then it will find a= ll Netbeans modules that are in that directory structure and copy them to y= our local Maven repository. (That's where Maven is looking for artifacts/de= pendencies, unfortunately there's currently no remote repository that would= host Netbeans artifacts).=20
You can later check maven-nbm-plugin homepag= e for updates and details on other available goal and customization propert= ies.=20
Start up Netbeans IDE (assuming Mevenide 0.6 installed) and create a new= project, under Maven category there is "Sample Netbeans module" = project template. A skeleton project is created for you.=20
Now we need to specify the correct Netbeans API module jar dependencies.==20 =20 =20
If you have done everyting correctly, you should have the Netbeans APIs = now available in the editor when you start coding your module.=20
Building is simple, just run "Build" or "Rebuild" fr= om the project's popup menu. The resulting module jar and nbm files will ap= pear under target/nbm directory in your project.=20