Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

I will also briefly describe how to import and build a Maven-based project within Netbeans.

Warning
titleWarning

These linux specific instructions are not up-to-date. You should just follow the generic instructions.

Downloads

Java

Java 1.5.0 can be downloaded at http://java.sun.com/j2se/1.5.0/download.jsp.

Info
titleJAVA_HOME

Set the JAVA_HOME variable to your JDK root area. Otherwise, Maven may not pick up the correct Java compiler.

At SLAC, you can setup the shared Java 1.5.0 JDK on Linux by executing this command.

No Format

export JAVAVER=1.5

Netbeans Installer

Get the install files for Netbeans from http://www.netbeans.org/index.html.

...

No Format
wget http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-1.0.2.tar.gz

Maven NBM

Mevenide provides Maven support in the Netbeans IDE. You need to get the "nbm" files for Maven support within Netbeansfrom the Mevenide Downloads Area .

download

No Format
wget http://mevenide.codehaus.org/download/mevenide-netbeans-autoupdate-1.0.nbm
wget http://mevenide.codehaus.org/download/mevenide-netbeans-grammar-0.6.1.nbm

...

For instance, this shows the shared install used at SLAC.

At SLAC, you can setup Java 1.5.0 by executing this command.

...

When finished, startup Netbeans.

...