Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

how to install groovy console / aem-easy-content-upgrade via MVN for AEM Cloud

Avatar

Level 9

According to this page:

https://github.com/valtech/aem-easy-content-upgrade#installation

We only need to add this to a pom.xml:

        <dependency>
            <groupId>de.valtech.aecu</groupId>
            <artifactId>aecu.complete.cloud</artifactId>
            <version>LATEST</version>
            <type>zip</type>
        </dependency>

However, if we add this to the root pom.xml or the ui/apps pom.xml (install instructions dont say which) it doesn't work,

e.g.

1. the console is not available on localhost:5402/groovyconsole nor  http://localhost:4502/apps/groovyconsole 

2. the "AEM easy content upgrade" menu item is missing from author admin page.

 

There must be more steps?

 

NOTE: we dont want to manually install this on a local pc, as this then wont work for cloud envs automated deployment, we want to do it entirely automatically with mvn.

 

Ive seen mention of using embed and filevault-package-maven-plugin in pom files.  If something like this is required, it seems to be missing from the install instructions.

 

 

this project (thanks to arunpatidar) https://github.com/arunpatidar02/aemaacs-aemlab/search?q=aecu

 

Appears to have config in three files: pom.xml,  all/pom.xml and filter.xml as follows:

 

all/pom.xml

 

  <embedded>
    <groupId>de.valtech.aecu</groupId>
    <artifactId>aecu.complete.cloud</artifactId>
    <type>zip</type>
    <target>/apps/aemlab-vendor-packages/install</target>
  </embedded>

 

  <dependency>
    <groupId>de.valtech.aecu</groupId>
    <artifactId>aecu.complete.cloud</artifactId>
    <type>zip</type>
  </dependency>

 

pom.xml

 

  <properties>

    :

    <aem.aecu.version>LATEST</aem.aecu.version>
  </properties>

 

  <!-- See: https://github.com/valtech/aem-easy-content-upgrade -->

  <dependency>
    <groupId>de.valtech.aecu</groupId>
    <artifactId>aecu.complete.cloud</artifactId>
    <type>zip</type>
    <version>${aem.aecu.version}</version>
  </dependency>

 

/ui.apps/src/main/content/META-INF/vault/filter.xml

 

    <filter root="/apps/aemlab"/>

 

We tried this and it doesn't work at all.  compilation fails with:

 

ERROR ValidationViolation: "jackrabbit-filter: Node '/apps/aemlab-vendor-packages/install/aecu.complete.cloud-6.1.0.zip' is not contained in any of the filter rules", filePath=jcr_root/apps/aemlab-vendor-packages/install/aecu.complete.cloud-6.1.0.zip

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You need to add in all module, not in ui.apps module

/all/src/main/content/META-INF/vault/filter.xml

https://github.com/arunpatidar02/aemaacs-aemlab/blob/master/all/src/main/content/META-INF/vault/filt... 

 

 

<filter root="/apps/aemlab-vendor-packages" />

 

 



Arun Patidar

View solution in original post

6 Replies

Avatar

Level 9

Thanks, thats very useful. Your config is quite extensive and very different from the documentation. How did you figure this out?

Avatar

Community Advisor

Hi @TB3dock 
this is the standard way to deploy dependent package when using maven

I have a dedicated short blog about it 

https://aemlab.blogspot.com/2022/06/aemaacs-tools.html 



Arun Patidar

Avatar

Level 9

Unfortunately, I get ERROR ValidationViolation: "jackrabbit-filter: Node '/apps/aemlab-vendor-packages/install/aecu.complete.cloud-6.1.0.zip' is not contained in any of the filter rules", filePath=jcr_root/apps/aemlab-vendor-packages/install/aecu.complete.cloud-6.1.0.zip

even after adding 

    <filter root="/apps/aemlab"/>

to the filter.xml (see updated main question)

Are there more files I need to update?

Avatar

Correct answer by
Community Advisor

You need to add in all module, not in ui.apps module

/all/src/main/content/META-INF/vault/filter.xml

https://github.com/arunpatidar02/aemaacs-aemlab/blob/master/all/src/main/content/META-INF/vault/filt... 

 

 

<filter root="/apps/aemlab-vendor-packages" />

 

 



Arun Patidar