Hi All,
We are in middle of migrating from the old code base to new codebase. As part of which I want to keep both the project running and getting deployed to AEM as Cloud Service. For this I have created this sample project structure.
My Parent pom which you see in the above screenshot below
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ansys.aem</groupId>
<artifactId>aem-master</artifactId>
<packaging>pom</packaging>
<version>1.0.0-SNAPSHOT</version>
<name>AEM Master Platform</name>
<description>AEM Master Platform</description>
<modules>
<module>platform</module>
<module>legacy-code</module>
</modules>
<profiles>
<profile>
<id>autoInstallPackage</id>
</profile>
<profile>
<id>autoInstallSinglePackage</id>
</profile>
</profiles>
</project>
Consider Platform and legacy code as standard AEM projects which you would build using a normal AEM archtype. This work locally perfectly fine and deploys both the project but on cloud it fails during the build step, in the logs of build image there is nothing useful which makes sense to me. Does anybody have an idea how to solve this. I would like to keep my projects separate, I understand that combining them into one AEM project would be a solution but we dont prefer that option.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @shehjadk07
It can be done and one suggestion, just move out the dispatcher module in parent folder, so dispatcher code can be managed and deployed from single module.
Below mentioned article can help you,
Hope it helps.
Views
Replies
Total Likes
Hi @shehjadk07
It can be done and one suggestion, just move out the dispatcher module in parent folder, so dispatcher code can be managed and deployed from single module.
Below mentioned article can help you,
Hope it helps.
Views
Replies
Total Likes
Thank you for this response so I guess I started in correct direction. I will try to move the dispatcher module out and check today hopefully it will work
Views
Likes
Replies