XWiki Enterprise Archetype
Last modified by Thomas Mortagne on 2017/03/02 18:34
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
-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
...
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
|---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