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:
<profile>
<id>create-release-client-lib-package</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>filevault-package-maven-plugin</artifactId>
<version>1.3.6</version>
<executions>
<execution>
<id>create-package</id>
<goals>
<goal>package</goal>
</goals>
</execution>
</executions>
<configuration>
<enableMetaInfFiltering>true</enableMetaInfFiltering>
<packageType>container</packageType>
<filterSource>${project.basedir}/filter.xml</filterSource>
<jcrRootSourceDirectory>${project.basedir}/ui.apps/src/main/content/jcr_root,${project.basedir}/ui.content/src/main/content/jcr_root</jcrRootSourceDirectory>
</configuration>
</plugin>
</plugins>
</build>
</profile>
The project contains a file named "filter.xml" in the root folder as this:
<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
<filter root="/ui.apps/src/main/content/jcr_root/apps/gsit/ext/ClientLibFolder" mode="replace"/>
<filter root="/ui.content/src/main/content/jcr_root/content/dam/formsanddocuments/mysite/folder"></filter>
<filter root="/ui.content/src/main/content/jcr_root/content/forms/af/mysite/folder"></filter>
</workspaceFilter>
I'm getting the error:
java.io.FileNotFoundException: C:\Users\my-user\Projects\my-project\git\target\vault-work\META-INF\vault\filter.xml
Which I suppose that is not the original filter.xml file but the file that gets created later
by filevault-package-maven-plugin inside the target folder.
Any ideas on this?
Thanks in advance.