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 2007/05/23 19:55:42 UTC
[Myfaces Wiki] Update of "Maven And Eclipse" by WernerPunz
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 WernerPunz:
http://wiki.apache.org/myfaces/Maven_And_Eclipse
------------------------------------------------------------------------------
Due to the transition to maven some changes in the build process are necessary.
- The first step is to download the current branch via subclipse or any other svn client.
+ The first step is to download the current branch via any subversion client.
Then build everything according to the ["Building_With_Maven"] General Maven Page.
Once you have this setup up and running
- a simple mvn eclipse:eclipse should setup the project structure.
+ a simple mvn eclipse:eclipse -Dwtpversion=1.5 should setup the project structure.
Note all the myfaces subprojects are then single eclipse projects with interdependencies set.
and .project and .wtp files generated.
+ You then can use the Eclipse internal project import facilities on the
+ root project to import all myfaces related projects-
+
- The link to the mave repository probably must be set within the projects
+ The link to the maven repository probably must be set within the projects
classpath variables (reachable under properties->libraries->add variable.
- For Editing and compiling, it probably (at the time of writing) is the easiest solution
- to use the plugin of your choice on one of the example projects and add the
- sources of the other projects as external links (new since Eclipse 3.1), reachable via the source tab
- in the project properties.
== Empty project creation ==
Use the archetype function as described in the general maven page of this wiki.
- And then once the archetype is created use mvn eclipse:eclipse and mvn install to generate all eclipse related
+ And then once the archetype is created use mvn eclipse:eclipse -Dwtpversion=1.5 (or higher) and mvn install to generate all eclipse related
project files.
Note for users of MyEclipse some additional adding of web project and jsf capabilities and the alteration of the target build path might be necessary.