myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "MyFaces Archetypes for Maven" by BrunoAranda
Date Wed, 28 Jun 2006 19:26:26 GMT
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/MyFaces_Archetypes_for_Maven

The comment on the change is:
Updated archetype names

------------------------------------------------------------------------------
  This 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:
  
  {{{
- mvn archetype:create -DarchetypeGroupId=org.apache.myfaces.maven \
+ mvn archetype:create -DarchetypeGroupId=org.apache.myfaces.maven      \
-                      -DarchetypeArtifactId=myfaces-archetype     \
+                      -DarchetypeArtifactId=maven-archetype-myfaces    \
-                      -DarchetypeVersion=1.0-SNAPSHOT             \
+                      -DarchetypeVersion=1.0-SNAPSHOT                  \
-                      -DgroupId=myAppId                           \
+                      -DgroupId=myAppId                                \
                       -DartifactId=testApp
  }}}
  
@@ -28, +28 @@

  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/asf/myfaces/maven/trunk/myfaces-archetype myfaces-archetype
+ svn co http://svn.apache.org/repos/asf/myfaces/maven/trunk/maven-archetype-myfaces
  }}}
  
  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:
  
  {{{
- cd myfaces-archetype
+ cd maven-archetype-myfaces
  mvn install
  }}}
  
@@ -45, +45 @@

  Now, using maven (anywhere in your file system) you can create a template for an application
that uses !MyFaces using the command:
  
  {{{
- mvn archetype:create -DarchetypeGroupId=org.apache.myfaces.maven \
+ mvn archetype:create -DarchetypeGroupId=org.apache.myfaces.maven      \
-                      -DarchetypeArtifactId=myfaces-archetype     \
+                      -DarchetypeArtifactId=maven-archetype-myfaces    \
-                      -DarchetypeVersion=1.0-SNAPSHOT             \
+                      -DarchetypeVersion=1.0-SNAPSHOT                  \
-                      -DgroupId=myAppId                           \
+                      -DgroupId=myAppId                                \
                       -DartifactId=testApp
  }}}
  
@@ -82, +82 @@

  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.maven   \
+ mvn archetype:create -DarchetypeGroupId=org.apache.myfaces.maven          \
-                      -DarchetypeArtifactId=jsfcomponents-archetype \
+                      -DarchetypeArtifactId=maven-archetype-jsfcomponents  \
-                      -DarchetypeVersion=1.0-SNAPSHOT               \
+                      -DarchetypeVersion=1.0-SNAPSHOT                      \
-                      -DgroupId=myAppId                             \
+                      -DgroupId=myAppId                                    \
                       -DartifactId=myJsfComponents
  }}}
  
  But well, now you have to get it from the sources:
  
  {{{
- svn co http://svn.apache.org/repos/asf/myfaces/maven/trunk/jsfcomponents-archetype
+ svn co http://svn.apache.org/repos/asf/myfaces/maven/trunk/maven-archetype-jsfcomponents
  }}}
  
  Then, install the archetype:
  
  {{{
- cd jsfcomponents-archetype
+ cd maven-archetype-jsfcomponents
  mvn install
  }}}
  
@@ -107, +107 @@

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

Mime
View raw message