Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

AEM (maven) project with forms

Avatar

Level 1

How to create a mvn project with aem forms packages? I need to use this import "com.adobe.fd.output.api.PostProcess" to write a custom post process for letters.

AEM version : 6.5.22.0

10 Replies

Avatar

Employee

Hi @AravindSe2,

 

Please use the below command to create the latest maven project for AEM Forms development.

 

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=53 -D appTitle="MyForm" -D appId="myform" -D groupId="com.myform" -D includeFormsenrollment="y" -D aemVersion="6.5.22"

 

Thanks
Pranay

Avatar

Level 1

Hi @Pranay_M ,

Thanks for your reply, i created the project but while building getting the below error

AravindSe2_0-1750079171157.png

 

Avatar

Employee

Hi @AravindSe2,

 

Based on the screenshot, it seems that the issue might be related to the permissioning. Can you please make sure the project is created properly and has all the required permissions. Also please make sure you have the correct MAVEN version and Java installed on the system.

 

Thanks
Pranay

Avatar

Level 1

HI @Pranay_M ,

Thank for your comment, I have checked the permission (ran using admin creds), mvn and java also fine. Still got the same kind of issue.

AravindSe2_0-1750135311869.png

 

Avatar

Level 3

Hello @AravindSe2 

 

Can you try creating the maven archetype in "Desktop" folder and then run the maven build.

Windows sometimes have permissions issue with Downloads folder.

 

You can also create a new folder in C:/ drive and test the same.

 

Thanks,

Rahul Pandey

Avatar

Level 1

Hi @rahulpandey27 ,

Thanks for you reply, i got the same error.

AravindSe2_0-1750137237628.png

 

Avatar

Level 3

Hello @AravindSe2 

 

Can you please try with below command:

 

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=52 -D appTitle="MyForm" -D appId="myform" -D groupId="com.myform" -D includeFormsenrollment="y" -D aemVersion="6.5.22"

 

I am able to build with above command.

There might be an issue with archetype 53 so I have changed it back to 52.

 

Thanks,

Rahul Pandey

Avatar

Level 1

Hi @rahulpandey27 ,

I tried that command as well, got the same kind of error. My requirement is to use the import for this "com.adobe.fd.output.api.PostProcess", i need to create the custom post process and that needs to be called while submitting the letter. Please let me know if you have any reference for this.

 

Thanks,

Avatar

Administrator

@AravindSe2 Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!



Kautuk Sahni

Avatar

Level 1

Hi @kautuk_sahni ,

I found other way to achieve (override the ootb submit button api). Still the above issue persists, if i find some more, will add and mark. Thanks