XWiki Enterprise Archetype

Last modified by Thomas Mortagne on 2017/03/02 18:34

The archetype moved to https://github.com/xwiki-contrib/xwiki-enterprise-archetype after 9.1 and is not sync with XE versions anymore.

A new archetype is now available to easily create your own product based on XWiki Enterprise. To use:

mvn archetype:generate \
  -DarchetypeArtifactId=xwiki-enterprise-archetype \
  -DarchetypeGroupId=org.xwiki.enterprise \
  -DarchetypeVersion=5.3-milestone-1

You'll get asked several questions. For example:

...
Define value for property 'groupId': : com.acme
Define value for property 'artifactId': : myproject
Define value for property 'version':  1.0-SNAPSHOT: :
Define value for property 'package':  com.acme: :
Define value for property 'projectName': : My Extra Project
Define value for property 'xwikiVersion': : 5.2
...

Note that the xwikiVersion is the version of XE you wish to depend on.

This generates a project with the following structure:

   |-myproject
   |---myproject-data
   |-----myproject-data-hsqldb
   |-------src
   |---------assemble
   |---myproject-distribution
   |-----myproject-jetty
   |-------myproject-jetty-hsqldb
   |---------src
   |-----------assemble
   |---myproject-ui
   |-----myproject-ui-common
   |-----myproject-ui-mainwiki
   |-----myproject-ui-wiki
   |---myproject-web

TODO

Modify the archetype to also generate a myproject-ui-wiki-all module that will have the following in its pom.xml:
<xwiki.extension.features>
  ${xe.ui.wiki.all.features},
  com.acme:myproject-ui-wiki,
  com.acme:myproject-ui-common
</xwiki.extension.features>

Tags:
   

Get Connected