Hide last authors
Vincent Massol 4.2 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
Vincent Massol 5.1 5 = Install IntelliJ IDEA =
serasset 1.3 6
Manuel Smeria 4.3 7 * Download and Install [[IntelliJ IDEA>>http://www.jetbrains.com/idea/]]
8 * [[Setup IntelliJ IDEA so that it respects the code style of the XWiki project>>CodeStyle]]
serasset 1.3 9
Vincent Massol 5.1 10 = Get the source for XWiki =
serasset 1.3 11
Vincent Massol 4.1 12 The source for XWiki is available via a [[source repository>>SourceRepository]].
VincentMassol 1.5 13
Vincent Massol 5.1 14 = Create an IntelliJ IDEA project =
serasset 1.3 15
Vincent Massol 4.1 16 IntelliJ IDEA supports Maven out of the box so all you need to do is open the ##pom.xml## file for the project you wish to build/debug.
VincentMassol 1.8 17
Vincent Massol 5.1 18 = Building sources =
serasset 1.3 19
Vincent Massol 4.1 20 In IDEA's menu, click on ##Build > Make Project##.
serasset 1.3 21
Vincent Massol 5.1 22 = Troubleshooting =
serasset 1.3 23
Vincent Massol 5.1 24 == Plenty of errors in imports ==
25
Vincent Massol 7.1 26 This mean IDEA wasn't able to resolve the dependencies of the module you're in. One typical cause is because IDEA failed to read the XWiki Maven POMs. And one reason for that is that XWiki requires a [[recent version of Maven>>Community.Building.WebHome]], while IDEA may embed an oldish version. This is causing problems such as the one in the following screenshot, preventing IDEA from resolving dependencies:
Vincent Massol 5.1 27
28 {{image reference="maven-idea-bug.png" width="650px"/}}
29
Vincent Massol 7.1 30 You also need to make sure that you've [[configured Maven properly with a good ##settings.xml## file>>Community.Building.WebHome]].

Get Connected