Wiki source code of Working with IntelliJ IDEA

Last modified by Vincent Massol on 2019/09/20 17:17

Show last authors
1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
5 = Install IntelliJ IDEA =
6
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]]
9
10 = Get the source for XWiki =
11
12 The source for XWiki is available via a [[source repository>>SourceRepository]].
13
14 = Create an IntelliJ IDEA project =
15
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.
17
18 = Building sources =
19
20 In IDEA's menu, click on ##Build > Make Project##.
21
22 = Troubleshooting =
23
24 == Plenty of errors in imports ==
25
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:
27
28 {{image reference="maven-idea-bug.png" width="650px"/}}
29
30 You also need to make sure that you've [[configured Maven properly with a good ##settings.xml## file>>Community.Building.WebHome]].

Get Connected