You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2014/02/22 21:29:38 UTC
svn commit: r1570908 -
/myfaces/site/cms-site/trunk/content/wiki/core/user-guide/getting-started/myfaces-archetypes-for-maven.mdtext
Author: lu4242
Date: Sat Feb 22 20:29:38 2014
New Revision: 1570908
URL: http://svn.apache.org/r1570908
Log:
fixing documentation
Modified:
myfaces/site/cms-site/trunk/content/wiki/core/user-guide/getting-started/myfaces-archetypes-for-maven.mdtext
Modified: myfaces/site/cms-site/trunk/content/wiki/core/user-guide/getting-started/myfaces-archetypes-for-maven.mdtext
URL: http://svn.apache.org/viewvc/myfaces/site/cms-site/trunk/content/wiki/core/user-guide/getting-started/myfaces-archetypes-for-maven.mdtext?rev=1570908&r1=1570907&r2=1570908&view=diff
==============================================================================
--- myfaces/site/cms-site/trunk/content/wiki/core/user-guide/getting-started/myfaces-archetypes-for-maven.mdtext (original)
+++ myfaces/site/cms-site/trunk/content/wiki/core/user-guide/getting-started/myfaces-archetypes-for-maven.mdtext Sat Feb 22 20:29:38 2014
@@ -273,10 +273,8 @@ rel="nofollow">http://localhost:8080/tes
development of custom JSF components. To create your new project, the only
thing you have to do is to execute this command;</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>
+ :::shell
+ mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
<p>It might be the case that the central archetype catalog is not yet up to
date and does not contain the Component Library archetype. In that case,
@@ -289,33 +287,29 @@ locally</ac:link-body></ac:link>. The ar
<p>Now, you can create the project in the folder of your choice! Just go to
that folder and run the <code>archetype:create</code> goal.</p>
-<ac:macro ac:name="code"><ac:plain-text-body><![CDATA[
-cd yourFolder
+ :::shell
+ cd yourFolder
-mvn archetype:create -DarchetypeGroupId=org.apache.myfaces.buildtools
-\
- -DarchetypeArtifactId=myfaces-archetype-jsfcomponents
-\
- -DarchetypeVersion=1.0.1
-\
- -DgroupId=myAppId
-\
- -DartifactId=myJsfComponents
-]
-]></ac:plain-text-body></ac:macro>
+ mvn archetype:create -DarchetypeGroupId=org.apache.myfaces.buildtools
+ \
+ -DarchetypeArtifactId=myfaces-archetype-jsfcomponents
+ \
+ -DarchetypeVersion=1.0.1
+ \
+ -DgroupId=myAppId
+ \
+ -DartifactId=myJsfComponents
<p>And there you have it, you can start coding without the hassle of
project configuration. The archetype generates a multi-module project with
this structure:</p>
-<ac:macro ac:name="code"><ac:plain-text-body><![CDATA[
- -+ project base (parent pom)
- |
- +--- core (component library)
- |
- +--- examples (examples for the components)
-]
-]></ac:plain-text-body></ac:macro>
+ :::text
+ -+ project base (parent pom)
+ |
+ +--- core (component library)
+ |
+ +--- examples (examples for the components)
<p>The layout of the project is almost identical to the layout of the
MyFaces sandbox. This also ensures that your components could go to the
@@ -346,18 +340,14 @@ handy to test that your components work
instance, if you want to execute your application directly from Jetty and
using MyFaces, execute this in the examples folder:</p>
-<ac:macro ac:name="code"><ac:plain-text-body><![CDATA[
-mvn -PjettyConfig clean package jetty:run
-]
-]></ac:plain-text-body></ac:macro>
+ :::shell
+ mvn -PjettyConfig clean package jetty:run
<p>Alternately, to build your example app using the JSF Reference
Implementation, execute this in the examples folder:</p>
-<ac:macro ac:name="code"><ac:plain-text-body><![CDATA[
-mvn -PjettyConfig -Djsf=ri clean package jetty:run
-]
-]></ac:plain-text-body></ac:macro>
+ :::shell
+ mvn -PjettyConfig -Djsf=ri clean package jetty:run
<p>And you can go to [<a href="http://localhost:8080/myJsfComponents-examples">http://localhost:8080/myJsfComponents-examples</a>](<a-href="http://localhost:8080/myjsfcomponents-examples">http://localhost:8080/myjsfcomponents-examples</a>.html)
to see the examples.</p>