Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a directory on your local file system where the project will be stored and change into this directory.
  2. Execute the following maven command:

    Include Page
    INCL:_mvn archetype command
    INCL:_mvn archetype command

  3. Choose an archetype when prompted. Here we choose the option magnolia-module-archetype which is a simple Magnolia project wrapped into Maven structure. 

  4. Next, the script asks to choose the archetype version - we recommend to choose always the latest version.

  5. 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.

    Code Block
    languagetext
    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.6.6
    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.6.6
    module-class-name: MyModule
    module-name: myModule
     Y: : Y

    If you confirm, Maven generates the archetype skeleton.