Skip to main content
New Participant
March 2, 2023

Dependency error while adding groovy through POM

  • March 2, 2023
  • 3 replies
  • 1933 views

Hi,

We are on AEM 6.5 version cloud. I added the following dependency on main pom, ui-apps pom and core pom files.

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

The below in the ui-apps pom:

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

 

Although, the maven build is success, the bundles related to groovy are not active. Following dependencies are showing error:

 

AEM Groovy Console - Bundle(aem-groovy-console-bundle)

com.day.cq.wcm.api,version=[1.29,2) -- Cannot be resolved
org.apache.jackrabbit.util,version=[2.5,3) -- Cannot be resolved
org.apache.sling.api.resource,version=[2.12,3) -- Cannot be resolved


AEM Groovy Console - API(aem-groovy-console-api)

org.apache.commons.lang3.exception,version=[3.12,4) -- Cannot be resolved
org.apache.sling.api.resource,version=[2.12,3) -- Cannot be resolved


AECU - Core(de.valtech.aecu.core)

com.day.cq.search,version=[1.4,2) -- Cannot be resolved
com.day.cq.wcm.api,version=[1.29,2) -- Cannot be resolved
org.apache.commons.lang3,version=[3.12,4) -- Cannot be resolved
org.apache.commons.lang3.builder,version=[3.12,4) -- Cannot be resolved
org.apache.commons.lang3.text,version=[3.12,4) -- Cannot be resolved
org.apache.commons.lang3.tuple,version=[3.12,4) -- Cannot be resolved
org.apache.jackrabbit.api,version=[2.6,3) -- Cannot be resolved
org.apache.sling.api.resource,version=[2.12,3) -- Cannot be resolved
org.apache.sling.engine,version=[2.4,3) -- Cannot be resolved

 

AECU - API(de.valtech.aecu.api)

org.apache.commons.lang3,version=[3.12,4) -- Cannot be resolved
org.apache.sling.api.resource,version=[2.12,3) -- Cannot be resolved


AECU - Cloud Startup Hook(de.valtech.aecu.cloud.startup.hook)

org.apache.sling.api.resource,version=[2.12,3) -- Cannot be resolved

 

Is there anything missing in what I added or is there any other dependency that can be used instead?

 

Thanks in advance!

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

3 replies

arunpatidar
New Participant
March 2, 2023

Hi,

Can you check the pom version here

https://github.com/arunpatidar02/aemaacs-aemlab/commit/3325b65bec062a549139156bc3584c743db67ff7 

 

<dependency> <groupId>de.valtech.aecu</groupId> <artifactId>aecu.complete.cloud</artifactId> <type>zip</type> <version>LATEST</version> </dependency>
Arun Patidar
New Participant
March 2, 2023

@arunpatidar I tried this, changed the version from 6.2 to 6.3 as well. Same issue! 

Can something else be causing this?

arunpatidar
New Participant
March 2, 2023

This is strange,

 

for me it resolved in local aem-sdk (version: Adobe Experience Manager (2022.9.8630.20220905T184657Z))

 

Arun Patidar
Shiv_Prakash_Patel
New Participant
March 2, 2023

Hi @pixislinger ,

Please check out this to install the groovy console - https://stackoverflow.com/questions/74960990/aem-cloud-how-do-you-install-groovy-console 

Regards,

Shiv

 

 

Shiv Prakash
nitesh_kumar-1
Employee
March 2, 2023

Hi @pixislinger ,

 

This seems to be an incompatibility between your SDK version and the plugin (groovy).

Try upgrading any of these so that appropriate dependencies can be resolved.

 

Hope that helps!

 

Regards,

Nitesh

 

New Participant
March 2, 2023

@nitesh_kumar-1 SDK version is 8 and the version for this pom I tried 6.2, 6.3 and LATEST as well. Same issue!

nitesh_kumar-1
Employee
March 2, 2023

Can you mention the full version name? 8 is quite abstract, something like (2022.9.8722.20220912T101352Z).

 

You can find recent versions of SDKs here, try with them

https://experience.adobe.com/#/downloads/content/software-distribution/en/aemcloud.html