Page History
...
To successfully deploy custom bundles to Magnolia Cloud, certain best practices must be followed when creating your project and when deploying it the first time or continuously thereafter.
Creating your custom bundle
Magnolia provides a cloud-specific option in the Magnolia Maven Archetype to bootstrap a new project.
Note |
---|
Until version 1.3 of the You receive your subscription-code and access keys during the Magnolia Cloud onboarding process. The |
Usage
Code Block | ||
---|---|---|
| ||
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=https://nexus.magnolia-cms.com/content/groups/public/ ... 6: https://nexus.magnolia-cms.com/content/repositories/magnolia.public.snapshots -> info.magnolia.maven.archetypes:magnolia-cloud-project-archetype (Automates the creation of a Magnolia Cloud project: parent pom and webapp) Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 6 Define value for property 'groupId': : com.mycompany.project Define value for property 'artifactId': : web-project-xyz Define value for property 'version': 1.0-SNAPSHOT: : Define value for property 'package': com.mycompany.project: : Define value for property 'cloud-subscription-code': : mycompany-project Define value for property 'magnolia-bundle-version': : 6.2.1 Define value for property 'project-name': web-project-xyz: : Confirm properties configuration: groupId: com.mycompany.project artifactId: web-project-xyz version: 1.0-SNAPSHOT package: com.mycompany.project cloud-subscription-code: mycompany-project magnolia-bundle-version: 6.2.1 project-name: web-project-xyz Y: : Y ... [INFO] project created from Archetype in dir: /Users/user/dev/web-project-xyz [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:18 min [INFO] Finished at: 2020-04-23T13:12:46+02:00 [INFO] ------------------------------------------------------------------------ |
...
Tip |
---|
Make sure you use the latest version of the Magnolia Cloud Maven Plugin when deploying a new bundle to Magnolia Cloud: v1.0-RC6 (available soon). |
More information can be found in the readme here: https://git.magnolia-cms.com/projects/OD/repos/magnolia-cloud-maven-plugin/browse/README.md
...