I'm newer to AEM/CRX/JCR stuff so I feel like there might just be something fundamental I'm missing but I just can't find the answer anywhere. I've looked at this question already.
Here's the issue:
- I change an attribute value in some .content.xml file (e.g. jcr:title="NewValue") from my local file system.
- I run
mvn clean install -Pauto-deploy
(auto-deploy profile info attached below) - After it finishes, I open http://localhost:4502/crx/de/index.jsp and navigate to the jcr:content node I modified.
- The old value of the property is still shown (e.g. jcr:title="OldValue").
If I delete the jcr:content node using CRXDE lite and then run maven again, the node shows fine with the updated values. So I know that the node is moving from my local file system into CRX fine, it just doesn't seem to be overwriting when there's already a value present. I feel like there must be some setting I'm missing or have implemented incorrectly.
Let me know if more info is required. Please note that I do not want to use vlt
directly since our build pipeline uses maven. Thanks in advance for the help!
auto-deploy profile (vault plugin config)
<plugin>
<groupId>com.day.jcr.vault</groupId>
<artifactId>maven-vault-plugin</artifactId>
<version>0.0.10</version>
<executions>
<execution>
<id>install-package</id>
<goals>
<goal>install</goal>
</goals>
<configuration>
<verbose>true</verbose>
<packageFile>${project.build.directory}/${project.build.finalName}.zip</packageFile>
<targetURL>http://${cq.host}:${cq.port}/crx/packmgr/service.jsp</targetURL>
<userId>${cq.user}</userId>
<password>${cq.password}</password>
<properties>
<acHandling>Overwrite</acHandling>
</properties>
</configuration>
</execution>
</executions>
</plugin>
Edit maven-resources-plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-content-resources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/vault-work</outputDirectory>
<warSourceExcludes>**/*.scss</warSourceExcludes>
<resources>
<resource>
<directory>${basedir}/src/main/content</directory>
<filtering>true</filtering>
<excludes>
<exclude>**/.svn</exclude>
<exclude>**/.vlt</exclude>
<exclude>**/*.scss</exclude>
<exclude>**/.vltignore</exclude>
<exclude>**/.DS_Store</exclude>
<exclude>**/*.scss</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
Edit I realized it may be worth noting that the .content.xml file I'm trying to modify and push is in /etc/designs.