Changes for page Creating XWiki Components

Last modified by Simon Urli on 2023/10/10

<
From version < 28.1 >
edited by Vincent Massol
on 2010/11/14
To version < 28.2 >
edited by Vincent Massol
on 2010/11/14
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -17,12 +17,12 @@
17 17  As you've read in the [[XWiki Component Reference>>code:Modules.ComponentModule]] writing a component is a three-streps process (component interface, component implementation, registration of component). To make it easier for you to get started, we have created a maven archetype to help create a simple component module with a single command.
18 18  
19 19  After you've [installed Maven>http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven], open a shell prompt an type:
20 -{code:none}
20 +{{code language="none"}}
21 21   mvn archetype:generate -DarchetypeCatalog=http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-tools/trunk/xwiki-archetypes/xwiki-archetype-component/archetype-catalog.xml
22 -{code}
22 +{{/code}}
23 23  
24 24  Then follow the instructions. For example:
25 -{code:none}
25 +{{code language="none"}}
26 26  vmassol@target $ mvn archetype:generate -DarchetypeCatalog=http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-tools/trunk/xwiki-archetypes/xwiki-archetype-component/archetype-catalog.xml
27 27  [INFO] Scanning for projects...
28 28  [INFO]
... ... @@ -73,9 +73,9 @@
73 73  [INFO] Final Memory: 9M/81M
74 74  [INFO] ------------------------------------------------------------------------
75 75  vmassol@target $
76 -{code}
76 +{{/code}}
77 77  
78 -Then go in the created directory (<tt>example</tt> in our example above) and run <tt>mvn install</tt> to build your component.
78 +Then go in the created directory (##example## in our example above) and run ##mvn install## to build your component.
79 79  
80 80  == The component explained ==
81 81  

Get Connected