You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bu...@apache.org on 2014/02/22 21:03:41 UTC
svn commit: r898872 - in /websites/staging/myfaces/trunk/content: ./
wiki/core/user-guide/getting-started/myfaces-archetypes-for-maven.html
Author: buildbot
Date: Sat Feb 22 20:03:40 2014
New Revision: 898872
Log:
Staging update by buildbot for myfaces
Modified:
websites/staging/myfaces/trunk/content/ (props changed)
websites/staging/myfaces/trunk/content/wiki/core/user-guide/getting-started/myfaces-archetypes-for-maven.html
Propchange: websites/staging/myfaces/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Feb 22 20:03:40 2014
@@ -1 +1 @@
-1570897
+1570899
Modified: websites/staging/myfaces/trunk/content/wiki/core/user-guide/getting-started/myfaces-archetypes-for-maven.html
==============================================================================
--- websites/staging/myfaces/trunk/content/wiki/core/user-guide/getting-started/myfaces-archetypes-for-maven.html (original)
+++ websites/staging/myfaces/trunk/content/wiki/core/user-guide/getting-started/myfaces-archetypes-for-maven.html Sat Feb 22 20:03:40 2014
@@ -386,7 +386,7 @@ Application Server to deploy the app to.
we have to make sure <a href="http://maven.apache.org/">Maven</a> is
installed on your system. Once Maven is installed, we can just type </p>
-<div class="codehilite"><pre>mvn archetype:generate -DarchetypeCatalog<span class="o">=</span>http://myfaces.apache.org
+<div class="codehilite"><pre><span class="n">mvn</span> <span class="n">archetype</span><span class="p">:</span><span class="n">generate</span> <span class="o">-</span><span class="n">DarchetypeCatalog</span><span class="p">=</span><span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">myfaces</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">org</span>
</pre></div>
@@ -402,15 +402,15 @@ empty project for us.</p>
that uses MyFaces, based on the blank example application. So, creating the
template of the application is as easy as executing:</p>
-<p><ac:macro ac:name="code"><ac:plain-text-body><![CDATA[
-mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
-]
-]></ac:plain-text-body></ac:macro>
+<div class="codehilite"><pre><span class="n">mvn</span> <span class="n">archetype</span><span class="p">:</span><span class="n">generate</span> <span class="o">-</span><span class="n">DarchetypeCatalog</span><span class="p">=</span><span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">myfaces</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">org</span>
+</pre></div>
+
+
<p>A list of available archetypes is show. Just select one of the 'Hello
world' options. Answer the questions that follow to set the properties and
you're all set! There are different 'Hello World' archetypes, see the
-<ac:link ac:anchor="MyFaces Maven archetypes"><ac:link-body>table
-above</ac:link-body></ac:link> for details.</p></p>
+table above for details.</p>
+
<p>That's all. The goal <code>archetype:create</code> downloads the proper
artifacts from the main maven repo and creates the test project. Now you
can start to work immediately.</p>
@@ -421,11 +421,10 @@ can start to work immediately.</p>
should do is to checkout the myfaces archetype source from the svn, using
the command:</p>
-<p><ac:macro ac:name="code"><ac:plain-text-body><![CDATA[
-svn co
-http://svn.apache.org/repos/asf/myfaces/myfaces-build-tools/trunk/maven2-archetypes
-]
-]></ac:plain-text-body></ac:macro></p>
+<div class="codehilite"><pre><span class="n">svn</span> <span class="n">co</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">svn</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">org</span><span class="o">/</span><span class="n">repos</span><span class="o">/</span><span class="n">asf</span><span class="o">/</span><span class="n">myfaces</span><span class="o">/</span><span class="n">myfaces</span><span class="o">-</span><span class="n">build</span><span class="o">-</span><span class="n">tools</span><span class="o">/</span><span class="n">trunk</span><span class="o">/</span><span class="n">maven2</span><span class="o">-</span><span class="n">archetypes</span>
+</pre></div>
+
+
<p>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
<code>mvn install</code> command. For example:</p>