how to install groovy console / aem-easy-content-upgrade via MVN for AEM Cloud | Community
Skip to main content
Level 8
December 30, 2022
Solved

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

  • December 30, 2022
  • 1 reply
  • 2646 views

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

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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?


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/filter.xml 

 

 

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

 

 

1 reply

arunpatidar
Community Advisor
Community Advisor
December 30, 2022
TB3dockAuthor
Level 8
December 30, 2022

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

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
December 30, 2022

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?


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/filter.xml 

 

 

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

 

 

Arun Patidar