I'm trying to integrate the Adobe Experience Manager project into a CI process.
We are working in Adobe Experience Manager Forms.
We only edit in this project the form structure and a Client lib JavaScript code.
I want to create a content package programmatically using a Maven command so I can integrate this process (which currently we are doing manually) into GitHub Actions.
We need to send this .zip file to another provider so they upload to Adobe Experience Manager instance.
We do not have any other way of deploying it.
What I want to achieve is to be able to generate the same .zip package that I generate in my local instance in Package Manager, but in Github Actions after a successful Pull Request.
So far, I've created a new profile in Maven with this config:
Solved! Go to Solution.
Views
Replies
Total Likes
Thanks @arunpatidar
Thanks @ManviSharma
I tried your suggestions but didn't work.
I don't know how to check this:
Also check if prepare-package goals work
<goal>prepare-package</goal>
I keep getting the same error.
I found there is this NPM project: https://www.npmjs.com/package/aem-packager
Which manages to create a package for a Clientlib,
somewhere using https://github.com/amclin/aem-packager/blob/master/aem-packager.js and https://github.com/amclin/aem-packager/blob/master/src/pom.xml
This tool is a wrapper for Maven, but I don't fully understand the Maven command that is using.
This creates the package and can be imported to AEM successfully, but differs in some files from the packages created in the Package Manager, although it does only for one folder.
But if I understood the process, I could replicate for multiple folders.
Thanks.
HI @ndresgarc
You need to create the filter.xml file inside the /META-INF/vault/filter.xml
Example
Also the content of the filter.xml would be like
<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
<filter root="/apps/gsit/ext/ClientLibFolder" mode="replace"/>
<filter root="/content/dam/formsanddocuments/mysite/folder"></filter>
<filter root="/content/forms/af/mysite/folder"></filter>
</workspaceFilter>
Also check if prepare-package goals work
<goal>prepare-package</goal>
Hi ,
The error java.io.FileNotFoundException: C:\Users\my-user\Projects\my-project\git\target\vault-work\META-INF\vault\filter.xml suggests that during the packaging process, the plugin is attempting to create or access a filter.xml file in the target/vault-work/META-INF/vault directory, but it doesn't exist. This file is crucial as it defines what parts of your JCR content structure should be included in the package.
Please check that the filter.xml file specified in your configuration is correctly placed and accessible. The path ${project.basedir}/filter.xml should be correct relative to your project structure.
Thanks @arunpatidar
Thanks @ManviSharma
I tried your suggestions but didn't work.
I don't know how to check this:
Also check if prepare-package goals work
<goal>prepare-package</goal>
I keep getting the same error.
I found there is this NPM project: https://www.npmjs.com/package/aem-packager
Which manages to create a package for a Clientlib,
somewhere using https://github.com/amclin/aem-packager/blob/master/aem-packager.js and https://github.com/amclin/aem-packager/blob/master/src/pom.xml
This tool is a wrapper for Maven, but I don't fully understand the Maven command that is using.
This creates the package and can be imported to AEM successfully, but differs in some files from the packages created in the Package Manager, although it does only for one folder.
But if I understood the process, I could replicate for multiple folders.
Thanks.