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/05/09 21:33:25 UTC

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

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 BrunoAranda:
http://wiki.apache.org/myfaces/Building_With_Maven

The comment on the change is:
Updated info to get the Myfaces archetype

------------------------------------------------------------------------------
  
  The documentation will be put in the target/site folder of every subproject.
  
- == Testing the MyFaces Archetype ==
+ == The MyFaces Archetype ==
  
  There is a [http://maven.apache.org/guides/introduction/introduction-to-archetypes.html "Maven Archetype"] allows you to generate a template for a web application that uses !MyFaces, based on the blank example application. So, creating the template of the application is as easy as executing:
  
@@ -48, +48 @@

  To be able to use the archetype the first thing you should do is to checkout the myfaces archetype source from the svn, using the command:
  
  {{{
- svn co http://svn.apache.org/repos/test/myfaces/maven-myfaces-plugins/myfaces-archetype myfaces-archetype
+ svn co http://svn.apache.org/repos/asf/myfaces/maven/trunk/maven-archetype myfaces-archetype
  }}}
  
  Now, let's install the plugin locally (this supposes that you have maven 2.x already installed). Navigate to the plugin root folder and use the mvn install command:
@@ -87, +87 @@

  The Jetty6 plugin has been added to the pom.xml of the archetype.
  
  {{{
- mvn jetty:run
+ mvn -P jettyConfig clean jetty6:run
  }}}
  
  This will create a war, launch the Jetty container and it will server your project at http://localhost:8080/testApp