Expand my Community achievements bar.

SOLVED

How to specify package dependencies in Maven project

Avatar

Level 2

Hi All,

According to https://docs.adobe.com/content/help/en/experience-manager-cloud-manager/using/how-to-use/deploying-c... , package dependencies determine the deployment order when deploying using Cloud Manager.

How do I specify the package dependencies so that I can control the order in which Cloud Manager deploys packages?

I tried adding the code below to the <dependencies> section in the pom.xml and it has not affected Cloud Manager package deployment order?

<dependency>
<groupId>com.myproject.ecomm.aem</groupId>
<artifactId>myproject.ui.thirdpartypackages</artifactId>
<version>${project.version}</version>
<type>zip</type>
</dependency>

Thanks and best regards,

Robert

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You can define package dependencies using maven like dependencies tab in AEM packages

https://docs.adobe.com/content/help/en/experience-manager-64/administering/contentmanagement/package...

 

like core components

 

 
 

 

 

 

<plugin>
                <groupId>org.apache.jackrabbit</groupId>
                <artifactId>filevault-package-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <showImportPackageReport>false</showImportPackageReport>
                    <embeddedTarget>/apps/core/wcm/install</embeddedTarget>
                    <embeddeds>
                        <embedded>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>core.wcm.components.core</artifactId>
                            <target>/apps/core/wcm/install</target>
                        </embedded>
                    </embeddeds>
                    <subPackages>
                        <subPackage>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>core.wcm.components.content</artifactId>
                            <filter>true</filter>
                        </subPackage>
                        <subPackage>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>core.wcm.components.config</artifactId>
                            <filter>true</filter>
                        </subPackage>
                    </subPackages>
                    <packageType>container</packageType>
                </configuration>
            </plugin>

 

 

capture3.PNG

 



Arun Patidar

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

You can define package dependencies using maven like dependencies tab in AEM packages

https://docs.adobe.com/content/help/en/experience-manager-64/administering/contentmanagement/package...

 

like core components

 

 
 

 

 

 

<plugin>
                <groupId>org.apache.jackrabbit</groupId>
                <artifactId>filevault-package-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <showImportPackageReport>false</showImportPackageReport>
                    <embeddedTarget>/apps/core/wcm/install</embeddedTarget>
                    <embeddeds>
                        <embedded>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>core.wcm.components.core</artifactId>
                            <target>/apps/core/wcm/install</target>
                        </embedded>
                    </embeddeds>
                    <subPackages>
                        <subPackage>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>core.wcm.components.content</artifactId>
                            <filter>true</filter>
                        </subPackage>
                        <subPackage>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>core.wcm.components.config</artifactId>
                            <filter>true</filter>
                        </subPackage>
                    </subPackages>
                    <packageType>container</packageType>
                </configuration>
            </plugin>

 

 

capture3.PNG

 



Arun Patidar