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 2008/04/09 05:09:32 UTC

[Myfaces Wiki] Update of "MyFaces Archetypes for Maven" by LeonardoUribe

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

------------------------------------------------------------------------------
  This archetypes 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:
  
  {{{
+ mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
+ 
+ Select option 1, set properties and that's all!
+ 
- mvn archetype:create -DarchetypeGroupId=org.apache.myfaces.buildtools   \
-                      -DarchetypeArtifactId=myfaces-archetype-helloworld \
-                      -DarchetypeVersion=1.0.0                           \
-                      -DgroupId=myAppId                                  \
-                      -DartifactId=testApp
  }}}
  
  That's all. The goal archetype:create downloads the proper artifacts from the main maven repo and create the test project. Now you can start to work immediately.
@@ -47, +46 @@

  Now, using maven (anywhere in your file system) you can create a template for an application that uses !MyFaces using the command:
  
  {{{
+ mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
+ 
+ Select option 1, set properties and that's all!
+ 
- mvn archetype:create -DarchetypeGroupId=org.apache.myfaces.buildtools      \
-                      -DarchetypeArtifactId=myfaces-archetype-helloworld    \
-                      -DarchetypeVersion=1.0.0                              \
-                      -DgroupId=myAppId                                     \
-                      -DartifactId=testApp
  }}}
  
  or if you want to use MyFaces + Facelets
  
  {{{
+ mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
+ 
+ Select option 2, set properties and that's all!
+ 
- mvn archetype:create -DarchetypeGroupId=org.apache.myfaces.buildtools               \
-                      -DarchetypeArtifactId=myfaces-archetype-helloworld-facelets    \
-                      -DarchetypeVersion=1.0.0                                       \
-                      -DgroupId=myAppId                                              \
-                      -DartifactId=testApp
  }}}
  
  or if you want to use Myfaces + Trinidad 
  
  {{{
+ mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
+ 
+ Select option 5, set properties and that's all!
+ 
- mvn archetype:create -DarchetypeGroupId=org.apache.myfaces.buildtools               \
-                      -DarchetypeArtifactId=myfaces-archetype-trinidad               \
-                      -DarchetypeVersion=1.0.0                                       \
-                      -DgroupId=myAppId                                              \
-                      -DartifactId=testApp
  }}}
  
  
@@ -127, +123 @@

  This archetype generates a maven multi-module project prepared for the development of custom JSF components. To create your new project, the only thing you have to do (again, after installing the archetype locally, but this will be not needed soon), is to execute this command;
  
  {{{
- mvn archetype:create -DarchetypeGroupId=org.apache.myfaces.buildtools       \
-                      -DarchetypeArtifactId=myfaces-archetype-jsfcomponents  \
-                      -DarchetypeVersion=1.0.0                               \
-                      -DgroupId=myAppId                                      \
-                      -DartifactId=myJsfComponents
+ 
+ mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
+ 
+ Select option 4, set properties and that's all!
+ 
  }}}
  
  But well, now you have to get it from the sources:
@@ -152, +148 @@

  
  {{{
  cd yourFolder
+ 
  mvn archetype:create -DarchetypeGroupId=org.apache.myfaces.buildtools      \
                       -DarchetypeArtifactId=myfaces-archetype-jsfcomponents \
-                      -DarchetypeVersion=1.0.0                              \
+                      -DarchetypeVersion=1.0.1                              \
                       -DgroupId=myAppId                                     \
                       -DartifactId=myJsfComponents
  }}}