how do deploy a file into the JCR via source code built via mvn clean install -PautoInstallPackage
This seems like a simple question, but I cant find it documented anywhere.
In our AEM project, we have several directories and content which get deployed into the AEM JCR repository and viewable in the CRX-DE editor on localhost, for example:
ui.apps/src/main/content/jcr_root/apps/ourapp/clientlibs/clientlib-site/css.txt
I notice most of the directories has a content.xml in them, and other files.
I need to deploy some groovy scripts to /apps/aecu-scripts/migrations
I have put these in the directory
ui.apps/src/main/content/jcr_root/apps/aecu-scripts/migrations
But they dont get deployed.
Im guessing I either need to generate content.xml files for each dir, or add something to the pom.xml (I cant see anything relating to the current files which do get deployed) or edit some other project file.
I tried manually putting the files and folders onto localhost using the CRX-DE editor, but there is no "export" option or similar which i could use to generate content.xml files.
Any ideas?
Im using eclipse with the AEM developer tools installed, but there seem to be no tools which help. There is a server section in the AEM perspective, but there seems to be no way to add an existing local cloud author instance running on 4503, there is only an option to create a new local server on 8080, which doesnt work.