Magnolia 5.4 reached end of life on November 15, 2018. This branch is no longer supported, see End-of-life policy.
...
Magnolia provides a Maven archetype to build the skeleton the skeleton of a Magnolia Maven module. The archetype provides options to build different modules:
The archetypeCatalog is in in https://nexus.magnolia-cms.com/content/groups/public/
.
...
Execute the following maven command:
Include Page | ||||
---|---|---|---|---|
|
Choose an archetype when prompted. Here we choose the option choose the option magnolia-module-archetype
which which is a simple Magnolia project wrapped into Maven structure. Maven will then ask us for the standard Maven properties such as which version of Magnolia we will be using.
Next, the script asks to choose the archetype version - we recommend to choose always the latest version.
Now you must prompt typical Maven properties such as groupId, artifactId, package name and version plus the Magnolia specific parameters magnolia-bundle-version, module-class-name and module-name.
When you have prompted all the parameters - the archetype summarizes your inputs and you must confirm or can skip.
language | text |
---|
Code Block | ||
---|---|---|
| ||
Define value for property 'groupId': : com.example Define value for property 'artifactId': : myModule Define value for property 'version': 1.0-SNAPSHOT: : Define value for property 'package': com.example: : Define value for property 'magnolia-bundle-version': : 5.4.16 Define value for property 'module-class-name': : MyModule Define value for property 'module-name': myModule: : Confirm properties configuration: groupId: com.example artifactId: myModule version: 1.0-SNAPSHOT package: com.example magnolia-bundle-version: 5.4.16 module-class-name: MyModule module-name: myModule Y: : Y |
If you confirm, Maven generates the archetype skeleton.