import com.adobe.fd.output.api.OutputService is not resolving in Java file (AEMaaCS Local SDK) | Community
Skip to main content
Level 3
March 14, 2024
Solved

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

  • March 14, 2024
  • 7 replies
  • 3574 views

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.
Best answer by workflowuser

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 

7 replies

Adobe Employee
March 14, 2024

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 

MohanJo1Author
Level 3
March 14, 2024

@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>

 

 

Adobe Employee
March 14, 2024
MohanJo1Author
Level 3
March 14, 2024

Hi @workflowuser - Any thoughts on my previous reply?

Adobe Employee
March 14, 2024

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

 

MohanJo1Author
Level 3
March 14, 2024

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>

 

 

MohanJo1Author
Level 3
March 14, 2024

the link you are following is for 6.5.It will not work for AEM Forms Cloud Service


@workflowuser where are you seeing that it's 6.5 link? Sorry, I'm not seeing it.

Adobe Employee
March 14, 2024

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

recommeded to use those API 

 

workflowuserAdobe EmployeeAccepted solution
Adobe Employee
March 14, 2024

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 

Adobe Employee
August 27, 2024

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.

kautuk_sahni
Community Manager
Community Manager
September 4, 2024

@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!

Kautuk Sahni