Expand my Community achievements bar.

SOLVED

AEM Forms 6.5.11 osgi - com.adobe.pdfg.service.api,version=[3.1,4) -- Cannot be resolved

Avatar

Level 1

Hello Experts, 

I am trying to use the GeneratePDFService to generate PDF from png on AEM Forms 6.5.11 OSGi. 

I am using the following Maven dependency on my project. 

 

<dependency>

   <groupId>com.adobe.aemfd.pdfg</groupId>

   <artifactId>adobe-aemfd-pdfg-api</artifactId>

   <version>4.0.30</version>

   <scope>provided</scope>

</dependency>

 

<dependency>

   <groupId>com.adobe.aemfd.pdfg</groupId

   <artifactId>adobe-aemfd-pdfg-common</artifactId>

   <version>4.0.30</version>

   <scope>provided</scope>

</dependency>

 

The code compiles fine, but when I deploy the package on my local instance, the bundles shows that it is unable to resolve the package:

    com.adobe.pdfg.result,version=[3.1,4) -- Cannot be resolved
    com.adobe.pdfg.service.api,version=[3.1,4) -- Cannot be resolved

 

I checked depfinder and it shows the Maven dependency as below (please also see the screenshot). 

 

jvinas_0-1642161691403.png

 

How do I go about resolving this issue?

 

Thanks, 

 

Jordi V.

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@jvinas 

If the code compiles fine, can you try deleting the version in the MANIFEST.MF file and then redeploy the bundle.

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

@jvinas 

If the code compiles fine, can you try deleting the version in the MANIFEST.MF file and then redeploy the bundle.

Avatar

Level 1

I had the same issue recently. I updated my dependency of the aemfd-client-sdk to the latest version. I still had 6.3 which resulted in the manifest generating version numbers that didn't match the ones on the deployed bundle AEMDS PDFG API bundle.

<dependency>
   <groupId>com.adobe.aemfd</groupId>
   <artifactId>aemfd-client-sdk</artifactId>
   <version>6.0.856</version>
</dependency>