A Magnolia module can be purely file based or it can be wrapped in a Maven project.
Multiexcerpt |
---|
MultiExcerptName | structure-comparison |
---|
|
Magnolia module wrapped in a typical Maven module structure before it is built. | File-based Magnolia module under $magnolia.resources.dir = Light module |
---|
Code Block |
---|
<maven-module-name>/
├── pom.xml
└── src/
└── main/
├── java/
└── resources/
├── META-INF/
│ └── magnolia/
│ └── module-name.xml
└── <module-name>/
├── apps/
├── dialogs/
│ └── myDialog.yaml
├── webresources/
└── templates/
├── components/
│ ├── myComponent.ftl
│ └── myComponent.yaml
└── pages/
├── myTemplate.ftl
└── myTemplate.yaml |
| Code Block |
---|
$magnolia.resources.dir/
└── <module-name>/
├── apps/
├── dialogs/
│ └── myDialog.yaml
├── module.yaml
├── webresources/
└── templates/
├── components/
│ ├── myComponent.ftl
│ └── myComponent.yaml
└── pages/
├── myTemplate.ftl
└── myTemplate.yaml |
|
|
Notes:
Include Page |
---|
| _What is magnolia.resources.dir |
---|
| _What is magnolia.resources.dir |
---|
|
<module-name>
folder contains exactly the same content in a Maven module and folder-based module. In a Maven module this folder is within src/main/resources
. In a folder-based modules this folder is within $magnolia.resources.dir
. Include Page |
---|
| INCL:_module_name allowed characters |
---|
| INCL:_module_name allowed characters |
---|
|
...