Download and build svn snapshot using Maven. See Building_With_Maven

Adding Eclipse support

Eclipse support easily can be added to the whole building process by simply executing mvn -D wtpversion=<WTP Version> eclipse:eclipse from the respective dir of the pom.xml file. Maven2 will then generate eclipse project files and wtp compatible files for editing and building within eclipse.

The WTP Version depends on the version of Eclipse being used. Eclipse 3.2.1 for examples needs a flag -D wtpversion=1.5.

You might need to do an additonal mvn:install to get all the libs needed for the build.

Note doing an eclipse:eclipse on the archtype project and then an additional mvn install should be enough to have everything in place to be able to import a working eclipse project. For users of MyEclipse some additional adding of web project and jsf capabilities and the alteration of the target build path might be necessary.

Eclipse setup example

I was able to get this working by performing the following steps from Eclipse 3.1.1.

I didn't have to do anything else to have everything working, but it's possible that some setup carried over from earlier attempts to import MyFaces (like the maven2 plugin and M2_REPO eclipse variable). Once all of the projects were imported, I moved them all into a workspace group called JSF to keep everything together. Thanks to Sean and Werner for doing all of the hard work to figure this out. --mkienenb

Eclipse update 2006-03-17

Starting with the 2006-03-01 creation of the myfaces-shared-impl and myfaces-shared-tomahawk, there are additional steps needed.

The reason for this additional libs is, that the build process now has an intermediate step to keep a shared codebase which then is added to myfaces, tomahawk etc... The above mentioned jars are this codebase, which are not linked due to the last step not being performable by eclipse before compilation without an additional ant builder.

Example Webapps autodeployment

Additionally if you want to have auto deployment of the examples projects via an eclipse plugin (WTP, MyEclipse etc...) you need to add those jars to the deployment of your webapp. I will skip the details of adding webapp capabilities to the examples projects here. Because depending on the plugin this is different.

The key is to get the jars automatically into the WEB-INF/lib and the classes into the WEB-INF/classes

As for the classes you simply have to change the target according to your plugins needs, so that the classes are put into the dir which is picked up for deployment.

The Libraries Usually any web enabled plugin has a facility somewhere in the project settings to add additional jars to the webapp deployment, you have to use this facility or an ant builder to deploy the *shared* jars into your WEB-INF/lib.

Additional Information

* Further information on how to access the subversion repository can be found under here

* The M2_REPO variable should be set in eclipse (3.2.1), on my winxp the maven2 repository is located at "c:/Documents and Settings/${username}/.m2/repository/" more information can be found here

Other known non Eclipse based JSF IDEs

Eclipse_IDE (last edited 2009-09-20 23:00:49 by localhost)