To update your existing AEM Forms project with the latest maven archetype, you will have to manually copy your code/configurations etc., from the old project to the new project.
The following steps were followed to migrate the project created using archetype 30 to archetype 33 project
If you deploy this new project as is the cloud service instance will not have HandleFormSubmission and the SubmitToAEMServlet. This is because every time you deploy a project using Cloud Manager anything under the
/apps folder is deleted and overwritten.
Once your project is successfully created, you can then start copying code/configurations etc., from old project to this new project
Copy the HandleFormSubmission servlet from
Copy the CustomSubmit from
C:\CloudManager\aem-banking-application\ui.apps\src\main\content\jcr_root\apps\bankingapplication\SubmitToAEMServlet from aem-banking-application to aem-banking-application1 project
import the new project into IntelliJ
Update the filter.xml in the ui.apps module of the aem-banking-application1 project to include the following line
After you have copied all the code to your new project, you can push this project to cloud manager.
To sync the content(Adaptive Forms,Form Data Model,etc.,)into your new project you will have to create the appropriate folder structure in your IntelliJ project and then sync your IntelliJ project with your AEM instance using the Get command of the repo tool.