adobe-aemds-core-docmanager-3.0.94 not in either the adobe public repository nor the maven repository contains this jar. | Community
Skip to main content
July 21, 2023
Solved

adobe-aemds-core-docmanager-3.0.94 not in either the adobe public repository nor the maven repository contains this jar.

  • July 21, 2023
  • 1 reply
  • 1270 views

Hi 

adobe-aemds-core-docmanager-3.0.94 not in either the adobe public repository nor the maven repository contains this jar. due to this while building with maven my junit tests giving below issue 

Underlying exception : java.lang.IllegalArgumentException: Could not create type
Caused by: java.lang.IllegalArgumentException: Could not create type
Caused by: java.lang.NoClassDefFoundError: com/adobe/aemfd/docmanager/source/DocumentSourceHandler
Caused by: java.lang.ClassNotFoundException: com.adobe.aemfd.docmanager.source.DocumentSourceHandler

Can someone guide me how to resolve?

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 Pulkit_Jain_

@prasadgo 

Filesystem based invocations would work for local builds but for remote, as mentioned earlier, the package com.adobe.aemfd.docmanager.source is exported by the adobe-aemds-core-docmanager bundle as well so you can run the tests deployed as a bundle. Haven't tested the same but you can give it a try.

1 reply

Pulkit_Jain_
Adobe Employee
Adobe Employee
July 21, 2023

@prasadgo 

This dependency can be resolved with the OOTB adobe-aemds-core-docmanager bundle (package com.adobe.aemfd.docmanager.source) provided with the AEM set-up so you can download this bundle on filesystem or you can use your code that can be deployed as a bundle on the server.

PrasadGoAuthor
July 21, 2023

@pulkit_jain,

 

Thanks for your reply.

I am doing following steps

1. Configured Junit5 with AEM mockito 

2. with in eclipse if add adobe-aemds-core-docmanager-3.0.94 as external jar

3. I am able to run the junit successfully.

 

Question : I want to automate mvn clean install through CI/CD that should also run the Junit test cases but its failing for above jar file. Please guide me how i can give this jar file support from remote server(Dev, Prod)?

 

Regards

Prasad.G

Mayank_Gandhi
Adobe Employee
Adobe Employee
July 25, 2023

@prasadgo in your settings.xml which repo is being referred?