Create a Magnolia webapp project from a template:
mvn archetype:generate -DarchetypeGroupId=info.magnolia.maven.archetypes -DarchetypeArtifactId=magnolia-project-archetype -DarchetypeVersion=RELEASE
Set your project properties (these can be whatever you want):
Define value for property 'groupId': com.pscu Define value for property 'artifactId': test Define value for property 'version' 1.0-SNAPSHOT: : Define value for property 'package' com.pscu: : Define value for property 'magnolia-bundle-version': 6.2.11 Define value for property 'project-name' test: : Confirm properties configuration: groupId: com.pscu artifactId: test version: 1.0-SNAPSHOT package: com.pscu magnolia-bundle-version: 6.2.11 project-name: test Y: :
Edit the POM files as follows:
- for the parent POM, choose option
B
for the webapp POM, choose option
iv
Build the project:
If you encounter any build problems, try renaming your $HOME/.m2/settings.xml
and then using this one instead. You'll have to rename it to settings.xml
.
mvn clean install
If you are using Eclipse, there are some additional steps you must take before running the project
Run the project:
Instructions for IntelliJ
Instructions for Eclipse
License Information:
Links
- Call recording - pscu2021!
- Creating a Custom Webapp with Maven
- Exclusions required to solve SUPPORT-13564