Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This will add the bin directory to the path on Linux using bash.

No Format
export PATHM2_HOME=/path/to/apache-maven-2.0.9
export PATH=$M2_HOME/bin:$PATH

It can be placed in the RC file for your shell so that this is setup when you login.

On Windows, refer to these instructions for adding an environment variable. The PATH variable should be modified to include $M2_HOME/bin.

Maven 2 Plugin

Install the Maven Plugin in Netbeans at Tools > Plugins > Available Plugins.

...

The Maven plugin should show in the Installed tab.

Project Setup

Now that Netbeans is correctly configured, we can checkout and build a Java project.

Checkout the lcsim-contrib project from the SLAC CVS. The user name "jeremy" should be replaced with your cvs account name, and the password should be replaced with your cvs password.

...

Now have Netbeans import this checkout as a project by clicking on Open Project.

The project can be built in the standard way by right clicking on it and selecting Build.

Image Added