Show last authors
1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
5 The XWiki war project source does not really contain anything so we will mimic what maven will do when building to create a full web project.
6
7 = Clone xwiki-platform =
8
9 ##xwiki-debug-eclipse## is made of pieces of xwiki-platform so you need to clone it somewhere so that ##xwiki-debug-eclipse## can find what it needs. It's recommended to clone ##xwiki-platform## and ##xwiki-dev-tools## in the same place.
10
11 {{code language="bash"}}
12 git clone [email protected]:xwiki/xwiki-platform.git
13 # If you want to work on xwiki-commons modules
14 git clone [email protected]:xwiki/xwiki-commons.git
15 # If you want to work on xwiki-rendering modules
16 git clone [email protected]:xwiki/xwiki-rendering.git
17 {{/code}}
18
19 = Clone xwiki-debug-eclipse project =
20
21 Clone it from ##[[https://github.com/xwiki/xwiki-dev-tools]]## and look at the ##xwiki-debug-eclipse/README.txt## file instructions.
22
23 {{code language="none"}}
24 git clone https://github.com/xwiki/xwiki-dev-tools.git
25 {{/code}}
26
27 {{warning}}
28 Make sure to import xwiki-debug-eclipse as an Eclipse project and not as a Maven project or it could break several pre-configured properties and it contains Eclipse linked resources based folders/files.
29 {{/warning}}
30
31 = [OPTIONAL] Change XWIKIPLATFORM path variable =
32
33 By default xwiki-debug-eclipse find xwiki-platform repository in ##${PROJECT_LOC}/../../xwiki-platform## (which means in the same parent folder than where you cloned xwiki-dev-tools). If that's not true for you, you can change it by going to project Properties -> Resources -> Linked Resources.
34
35 = Add xwiki and hibernate config =
36
37 This project comes with some example configuration you need to copy/paste and set as you need it to be:
38
39 * src/main/webapp/WEB-INF/xwiki.cfg.default -> src/main/webapp/WEB-INF/xwiki.cfg
40 * src/main/webapp/WEB-INF/xwiki.properties.default -> src/main/webapp/WEB-INF/xwiki.properties
41 * src/main/webapp/WEB-INF/hibernate.<database>.cfg.xml.default -> src/main/webapp/WEB-INF/hibernate.cfg.xml
42
43 {{velocity}}
44 ##########################################################################
45 ## NAVIGATOR
46 #set($next_tuto_page = 'ImportJarProjects')
47 #if($previous_tuto_page) [[previous>>$previous_tuto_page]] ~| #end[[home>>Community.DebugXWikiWithEclipse]]#if($next_tuto_page) ~| [[next>>$next_tuto_page]]#end
48 {{/velocity}}

Get Connected