Versions Compared

Key

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

...

The NetBeans IDE has native Maven support. This means that nothing needs to be setup to get things to work (i.e., downloading Maven plugins is not necessary).

Setting Maven Options

TODO: Explain setting MAVEN_OPTS relative to NetBeans.

Platform/Symptom

Options

Unix, Windows

-Xmx512M -XX:MaxPermSize=128M

64 bit Unix, Windows and/or out-of-memory or PermGen space errors

MAVEN_OPTS=-Xmx768M -XX:MaxPermSize=192M

64 bit Unix, Windows with Java SE 6 (update 14 or later)

-XX:MaxPermSize=128m -Xmx512M -XX:+UseCompressedOops

Building the source

Here are the steps to build Apache CXF source with NetBeans:

...

Profile option

Description

-Peverything

Builds everything including the distribution modules that are normally excluded and the sample projects.

-Pnochecks

Builds CXF without running Checkstyle

-Pfastinstall

Builds CXF without running Checkstyle or the tests

...

  • Right click "Apache CXF" and select "Clean and Build".

Setting Maven Options

...

  • .

...

Platform

...

Symptom

...

Options

...

Unix, Windows

...

-Xmx512M -XX:MaxPermSize=128M

...

64 bit Unix, Windows and/or out-of-memory or PermGen space errors

...

MAVEN_OPTS=-Xmx768M -XX:MaxPermSize=192M

...

64 bit Unix, Windows with Java SE 6 (update 14 or later)

...