Code base made from the legacy code - modernized for cloud
- Fix the initial errors in the legacy code and build into the normal 6.5 jar Please note we have to use Java 11.
- Run the best practise analyser tool (BPA)
- Install node and npm
- Install aio-cli plugin (npm install -g @adobe/aio-cli)
- Install cloud manager plugin (aio plugins:install @adobe/aio-cli-plugin-aem-cloud-service-migration)
- Run aio aem-migration:repository-modernizer (we will run only the repository modernizer) with yaml file as per https://github.com/adobe/aio-cli-plugin-aem-cloud-service-migration/blob/master/config/README.md For windows the file location is C:\Users\Administrator\AppData\Local@adobe\aio-cli
- Once migration is complete resolve errors and fix the workspace
Some common errors
-
Pom version not copied.
-
WCMUse has to be converted to WCMUsePojo
-
Change the order to allow core to be built first.
-
Add the sling model dependancy in the mail pom as well
-
Use command mvn verify to check the project
-
Use Command mvn clean install -PautoInstallPackage to build and deploy package