You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2006/02/10 17:57:47 UTC

[Myfaces Wiki] Update of "Building With Maven" by MikeKienenberger

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by MikeKienenberger:
http://wiki.apache.org/myfaces/Building_With_Maven

The comment on the change is:
Added steps for setting up MyFaces in eclipse

------------------------------------------------------------------------------
  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.
+  * Check out the entire myfaces repository using eclipse (https://svn.apache.org/repos/asf/myfaces/current) as a project
+  * Close the project
+  * Move the project directory (here-after referred to as the "myfaces checkout") outside of my workspace directory
+  * Run "mvn install" from the command-line in the root directory of the myfaces checkout
+  * Run "mvn eclipse:eclipse" from the command-line in the root directory of the myfaces checkout
+  * Use "Import..." -> "Existing Projects into Workspace" from eclipse, with the root directory set to the new location of the myfaces checkout.
+  * Continue importing the 11 myfaces "projects" (the myfaces sub-projects).
+ 
+ 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
+