Differences between revisions 1 and 2
Revision 1 as of 2007-03-26 20:48:22
Size: 1161
Editor: WernerPunz
Comment: Added building instructions for Netbeans and MyFaces
Revision 2 as of 2009-09-20 23:00:43
Size: 1161
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Building MyFaces in Netbeans 5.5 and above

Building MyFaces in Netbeans is very simple,however you have to follow some prerequirements

* Maven2 has to be installed * Download and install the Maven2 plugin for Netbeans

First check out MyFaces manually via svn, and do a normal build.

If everything works well issue following command to have the Netbeans project structure generated:

  • mvn netbeans-freeform:generate-netbeans-project

After that you can import the generated projects via the Netbeans project import facilities.

A build should be possible now simply by calling build on the affected project or by issuing a master build via F11 (or under Build-> build main project)

If you get the error: cannot find ${mvn.path}, you have to add a mvn call to the ant options under Options->Miscellangeneous->Ant->Manage properties

  • mvn.path=mvn

If you get the error message, JAVA_HOME not properly defined, from the maven call start netbeans from the console not from the UI! (or start Netbeans from a non Gnome console, and make sure JAVA_HOME is properly defined)

If all goes well myfaces should build now!

Netbeans_IDE (last edited 2009-09-20 23:00:43 by localhost)