How to copy paste a file during Dispatcher deployment
We are trying to adopt Cloud Manager for our Build and deployment. We are at AEM 6.5.5. We need to push a specific file from Dispatcher code into certain location in Dispatcher using pom.xml in Dispatcher. The file is custom file and not part of regular conf.* folders... How can we achieve that?
I have created a folder in dispatcher called "script" and placed the file there. I can see it is getting bundled in the artifact zip file.
But what I also need is to copy-paste/replace this file to a dispatcher location "/opt/dispatcher/scripts".
We used to do that using copy command in Jenkins, but need to know how to do the same using maven.
My plan was to extract the dispatcher artifact zip and then copy-paste the script file into the location "/opt/dispatcher/scripts". I was referring these two articles for unzip and copy. https://maven.apache.org/plugins/maven-dependency-plugin/examples/unpacking-artifacts.html https://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html Not sure if this is right approach..but I am getting error in unzip itself. I have attached the dispatcher pom.xml for your reference.