Skip to main content
Level 3
Mar 14, 2024 7:59 PM UTC
Solved

import com.adobe.fd.output.api.OutputService is not resolving in Java file (AEMaaCS Local SDK)

I've added the following Maven dependency to both the parent POM and the core POM. Now, I'm attempting to utilize this service within an AEM servlet by importing com.adobe.fd.output.api.OutputService. However, Eclipse is unable to resolve or import this package.

I'm on AEMaaCS Local SDK.

 

<dependency>

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

<artifactId>aemfd-client-sdk</artifactId>

<version>6.3.0</version>

<scope>provided</scope>

</dependency>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
workflowuserAccepted solution
Adobe Employee
Mar 14, 2024 10:10 PM UTC

the command for creating cloud service project is like this

mvn -B archetype:generate -DarchetypeGroupId=com.adobe.aem -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=41 -DaemVersion="cloud" -DartifactId="aem-banking-application" -DappTitle="BankingApplication" -DappId="bankingapplication" -DgroupId="com.aem.bankingapplication" -DincludeForms="y"

notice the aemversion = cloud 

27 replies

Adobe Employee
Mar 14, 2024 9:24 PM UTC

I don’t think you  use that package on cloud service AEM forms

To use output service in AEM forms cs, you will have to make a post call to rest api to generate documents 

Translate
MohanJo1Author
Level 3
Mar 14, 2024 9:31 PM UTC

@workflowuser This package is already part of below mentioned maven dependency and still its not resolving after including this. I've attached screenshot for reference.

<dependency>
    <artifactId>adobe-lc-forms-bedrock-connector</artifactId>
    <version>2.0.64</version>
    <groupId>com.adobe.aemfd</groupId>
    <scope>provided</scope>
</dependency>

 

 

Translate
Adobe Employee
Mar 14, 2024 9:25 PM UTC
MohanJo1Author
Level 3
Mar 14, 2024 9:42 PM UTC

Hi @workflowuser - Any thoughts on my previous reply?

Translate
Adobe Employee
Mar 14, 2024 9:41 PM UTC

Can you please let us know what steps have you followed so far?

 

Translate
MohanJo1Author
Level 3
Mar 14, 2024 9:47 PM UTC

Hi @workflowuser - I have included following two dependencies in both the parent POM and the core POM. Now, I'm attempting to utilize this service within an AEM servlet by importing this package com.adobe.fd.output.api.OutputService. However, Eclipse is unable to resolve or import this package.

 

I got this first dependency from the screenshot i shared above.

<dependency>
    <artifactId>adobe-lc-forms-bedrock-connector</artifactId>
    <version>2.0.64</version>
    <groupId>com.adobe.aemfd</groupId>
    <scope>provided</scope>
</dependency>

 

<dependency>

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

<artifactId>aemfd-client-sdk</artifactId>

<version>6.3.0</version>

<scope>provided</scope>

</dependency>

 

 

Translate
Adobe Employee
Mar 14, 2024 9:48 PM UTC

How did you create your AEM project?

Translate
Adobe Employee
Mar 14, 2024 9:51 PM UTC

There are API exposed that allow you to merge data with template on cloud service

recommeded to use those API 

 

Translate
workflowuserAdobe EmployeeAccepted solution
Adobe Employee
Mar 14, 2024 10:10 PM UTC

the command for creating cloud service project is like this

mvn -B archetype:generate -DarchetypeGroupId=com.adobe.aem -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=41 -DaemVersion="cloud" -DartifactId="aem-banking-application" -DappTitle="BankingApplication" -DappId="bankingapplication" -DgroupId="com.aem.bankingapplication" -DincludeForms="y"

notice the aemversion = cloud 

Translate
Adobe Employee
Aug 27, 2024 5:41 AM UTC

For AEM Forms as a Cloud Service local sdk, you need to use 

https://mvnrepository.com/artifact/com.adobe.aem/aem-forms-sdk-api sdk.

Translate
kautuk_sahni
Level 9
Sep 4, 2024 12:03 PM UTC

@mohanjo1 Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Translate
Kautuk Sahni