Wiki source code of Source Repositories

Last modified by Vincent Massol on 2026/12/01 20:02

Hide last authors
Thomas Mortagne 20.1 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
vmassol 1.1 4
Vincent Massol 38.2 5 All XWiki sources are stored in [[Git>>http://git-scm.com/]] repositories on {{scm}}GitHub{{/scm}}. XWiki is an [[OW2 project>>https://projects.ow2.org/view/xwiki/]], but we're using GitHub to store our sources.
vmassol 1.1 6
Vincent Massol 34.3 7 You can browse the source repositories and download/clone the sources by using {{scm}}GitHub{{/scm}}. If you're looking for sources corresponding to a given XWiki version you'll need to switch to that version's branch in GitHub's UI.
VincentMassol 1.20 8
Vincent Massol 14.5 9 = Top Level Projects =
VincentMassol 1.10 10
Manuel Smeria 32.2 11 XWiki is not a single product, but an ecosystem of {{scm}}top-level projects{{/scm}}.
Vincent Massol 9.1 12
Vincent Massol 34.2 13 Here's the list of repositories (one repository per top level project) maintained by the XWiki Core Development Team (a.k.a Core XWiki Committers) and that you should see if you browse the Git repositories at https://github.com/xwiki :
Vincent Massol 14.3 14
Vincent Massol 23.2 15 |=Git Repository name|=Description
Vincent Massol 23.5 16 |[[xwiki-commons>>commons:Main.WebHome]]|Technical libraries common to several other top level projects. Can be used by projects outside of the XWiki ecosystem; not related to the wiki domain.
Vincent Massol 33.2 17 |[[xwiki-rendering>>rendering:Main.WebHome]]|Rendering library to convert some input syntax into another output syntax. Can be used by projects outside of the XWiki ecosystem. Uses ##xwiki-commons##.
Simon Urli 43.2 18 |[[xwiki-platform>>https://github.com/xwiki/xwiki-platform]]|Reusable components/parts used by other top level projects, making up a wiki runtime. Uses ##xwiki-commons## and ##xwiki-rendering##. Also provide the default Distribution and the Standard Flavor.
Vincent Massol 43.1 19 |[[xwiki-dev-tools>>https://github.com/xwiki/xwiki-dev-tools]]|Various internal subprojects for improving the XWiki development experience (release scripts, helper to easily debug XWiki inside Eclipse, etc).
20 |[[xwiki-docker>>https://github.com/xwiki/xwiki-docker]]|Docker images to run XWiki as a Docker container.
21 |[[xwiki-jenkins-pipeline>>https://github.com/xwiki/xwiki-jenkins-pipeline]]|Jenkins custom pipeline libraries used by the various ##Jenkinsfile## located at the root of various Git Repositories.
22 |[[xwiki-docker-build>>https://github.com/xwiki/xwiki-docker-build]]|Docker image for Jenkins Agent
23 |[[xwiki-clover-maven>>https://github.com/xwiki/xwiki-clover-maven]]|Provide a Clover diff between two reports, excluding test classes and showing global TPC contribution diffs for each Maven module with the goal of finding out which modules are negatively contributing to the global TPC
Vincent Massol 23.1 24
Manuel Smeria 32.2 25 {{info}}
Simon Urli 43.2 26 In order to better understand the relationships between the Platform and other top level projects, check how XWiki is [[Architected>>xwiki:Documentation.DevGuide.Architecture]].
Manuel Smeria 32.2 27 {{/info}}
Vincent Massol 23.4 28
Vincent Massol 25.1 29 = Contrib Projects =
Vincent Massol 14.3 30
Vincent Massol 34.1 31 In addition to the Top Level Projects mentioned above (and for which only XWiki Core committers have the rights to commit to), we've also created an {{scm user="xwiki-contrib"}}XWiki Contrib{{/scm}} organization on GitHub where everyone could contribute easily to XWiki-related projects (If you're interested see the [[documentation for Contrib projects>>contrib:Main.WebHome]]).
Vincent Massol 14.3 32
Vincent Massol 34.1 33 Note that GitHub offers free hosting for open source projects for every registered user, so you don't have to ask for access to the ##xwiki-contrib## repositories if you just want to host your own code. That said we would love for you to put your project on ##xwiki-contrib## since it makes it easy for users/developers to find XWiki-related projects under a single location (it also makes better advertising for your own project). By using ##xwiki-contrib## you also gain [[a wiki and a JIRA project if you want to>>contrib:Main.WebHome#HHostingtools]] (among other tools).
Sergiu Dumitriu 27.1 34
Thomas Mortagne 36.1 35 = Attic =
36
37 Finally abandonned project are moved to {{scm user="xwiki-attic"}}the xwiki-attic organization{{/scm}}.
38
Vincent Massol 25.1 39 = Project Structure =
Vincent Massol 23.1 40
Vincent Massol 22.1 41 == XWiki Commons Structure ==
42
43 |=Directory name|=Description
Vincent Massol 25.1 44 |xwiki-commons/xwiki-commons-pom|The top level Maven build descriptor (a.k.a POM). It's referenced by all other build modules.
45 |xwiki-commons/xwiki-commons-core|Commons libraries (JARs)
46 |xwiki-commons/xwiki-commons-tools|Build tools used to build other commons modules.
Vincent Massol 22.1 47
48 == XWiki Rendering Structure ==
49
50 See the [[Rendering Project>>rendering:Main.WebHome]].
51
Vincent Massol 14.3 52 == XWiki Platform Structure ==
53
54 |=Directory name|=Description
Vincent Massol 25.1 55 |xwiki-platform/xwiki-platform-core|All core modules (JARs, skins, extensions, Web, etc)
56 |xwiki-platform/xwiki-platform-tools|Build tools and various other misc. tools.
Thomas Mortagne 38.1 57 |xwiki-platform/xwiki-platform-distribution|Distributed packages (WAR, installers, Standard Flavor, etc)
Vincent Massol 14.3 58
Vincent Massol 25.3 59 = Getting Sources =
VincentMassol 1.12 60
Thomas Mortagne 29.2 61 Go to {{scm}}GitHub{{/scm}}, select the repository you wish to get and follow the GitHub instructions.
VincentMassol 1.12 62
Manuel Smeria 32.2 63 Then [[build>>Building]] the sources.
Caleb James DeLisle 18.1 64
Thomas Mortagne 39.1 65 Alternatively, locate the XWiki artifact for which you wish to get the sources of in our [[Maven Repository>>https://nexus.xwiki.org/nexus/content/repositories/releases/]] and download the associated source JAR. For example to get the sources for the "XWiki Commons Component API" module, get the JAR file ending with ##-sources## [[here>>https://nexus.xwiki.org/nexus/content/repositories/releases/org/xwiki/commons/xwiki-commons-component-api/4.5.2/]].
Vincent Massol 32.1 66
67 = Branches and Tags =
68
Manuel Smeria 32.2 69 Check our [[Versioning and Release practices>>VersioningAndReleasePractices#HReleasesandSCM]].
Vincent Massol 34.1 70
Vincent Massol 42.1 71 = GitHub Setup =
72
Vincent Massol 44.1 73 The GitHub configuration shared by the XWiki repositories lives once in the [[xwiki/.github>>https://github.com/xwiki/.github]] repository, instead of being copied in each repository where it would drift. Its [[README>>https://github.com/xwiki/.github#readme]] has the details; in short it holds:
Vincent Massol 42.1 74
Vincent Massol 44.1 75 * **Default community health files**: the pull request template, ##CONTRIBUTING.md##, ##SECURITY.md## and ##FUNDING.yml##, which apply to every repository of the ##xwiki## organization that has no copy of its own. The ##xwiki-contrib## organization has its own, in [[xwiki-contrib/.github>>https://github.com/xwiki-contrib/.github]].
76 * **Reusable workflows**, called by a short stub in each repository: the pull request quality checks (Checkstyle and SonarCloud on the changed lines) and the automatic backports.
77 * **The shared Renovate preset**, which the repositories' own ##.github/renovate.json5## extend. Renovate keeps the dependencies up to date by opening pull requests, and Dependabot reports the vulnerable ones (example for [[xwiki-platform>>https://github.com/xwiki/xwiki-platform/security/dependabot]]).
78 * **The shared files**, kept identical in all the repositories by a nightly job (see below).
79
80 == Shared files ==
81
Vincent Massol 45.1 82 Some files have to be identical in several of our repositories and no GitHub mechanism shares them. They are synchronized every night from [[xwiki/.github>>https://github.com/xwiki/.github#shared-files]] by the ##xwiki-shared-files## GitHub App, which commits directly to the default branch:
Vincent Massol 44.1 83
Vincent Massol 45.1 84 * ##.gitignore##: in every public repository of the ##xwiki## and ##xwiki-contrib## organizations holding a ##pom.xml##.
85 * ##.mvn/extensions.xml##, ##.mvn/develocity.xml## and ##.mvn/develocity-custom-user-data.groovy## (Develocity build scans and cache): in xwiki-commons, xwiki-rendering and xwiki-platform only. **The Maven extensions are upgraded in xwiki/.github**, where Renovate proposes their new versions.
86
87
Vincent Massol 44.1 88 * **To change a shared file, change it in xwiki/.github**, through a pull request there. A change made in a repository is overwritten the next night.
89 * **Ignores specific to one repository** go in a ##.gitignore## file of the subdirectory they concern (for example the build output of a Node.js package, in its source directory), and **personal ones** in your clone's ##.git/info/exclude## or your global gitignore.
90 * **To opt a repository out** of the synchronization, add the ##no-shared-files-sync## topic to it on GitHub.
91
Vincent Massol 35.1 92 = History =
Vincent Massol 34.1 93
Vincent Massol 35.1 94 Originally the sources were put on SourceForge in CVS in 2003. They were then moved to a Subversion instance and are now in git on GitHub.
Vincent Massol 34.1 95
Vincent Massol 35.1 96 Some details:
Thomas Mortagne 36.1 97
Vincent Massol 35.1 98 * An old archived version when the sources were in SVN can be [[accessed through WebArchive>>http://web.archive.org/web/20150922144425/http://svnsearch.org/svnsearch/repos/XWIKI/search]].
Vincent Massol 42.2 99 * To get the first commit of XWiki, checkout ##xwiki-platform## and issue: {{code language="sh"}}git rev-list --max-parents=0 --tags --branches --reverse | head -1 | xargs git log{{/code}} (another less good way: {{code language="sh"}}git log --reverse XWIKI_0_1_10{{/code}}).
Vincent Massol 35.1 100
101 {{info}}
102 Some trivia:
103 * The first commit of XWiki was done by Ludovic on 15 December 2003, at 09:13:33 Paris/France time.
104 * The first version of XWiki was taking less than 6MB of disk space (uncompressed and including its libraries).
105 {{/info}}

Get Connected