Sample maven project that uses the @ez-aem/policies npm package to manage AEM Policies & Style System.
-
Create the policies folder. If you are working on an Archetype project, the name should be
ui.policies
. If you are working on a site-template project, then we recommend/src/policies
. -
Install into your AEM archetype or site-template project with degit and npx.
cd ui.policies
# or
cd /src/policies
npx degit github:ez-aem/policies-example
-
Find and Replace PROJECTNAME with your project's name. This will also need to be done on the
./src/main/content/jcr_content/conf/PROJECTNAME
folder, so make sure it's a name that Maven will accept. -
Install the npm depenencies.
npm ci
- Run the example.
npm run generate
- Run the maven build example
mvn clean install
-
Update the policies and style system code to your liking. Further documentation can be found at @ez-aem/policies.
-
Integrate into your existing Maven project by updating the parent pom information in the pom.xml file. And add the maven submodule to your parent pom's build
<modules>
section.