packages in package manager not installed - aem 6.3 SP2 | Community
Skip to main content
sreenu539
Level 7
May 9, 2018

packages in package manager not installed - aem 6.3 SP2

  • May 9, 2018
  • 7 replies
  • 10599 views

I have build and deploy code using mvn clean install -PautoInstallPackage.

There are two sub packages as part of pom file ( aem-acs-commons 3.14.8, core-wcm-components-all 2.0.6) these two packages are uploaded as part of build, but these packages not installed in package manager.

I can see packages below etc/packages and in crxde package manager, but not installed, i have to install them manually to get these packages features.

I do not want to do manual install, this install should happen as part of maven build and deploy.

Any help ?

Thanks,

Sri

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

7 replies

sreenu539
sreenu539Author
Level 7
May 9, 2018

Yes. Followed all 3 steps in acs commons documentation and included core components all as subpackage, dependency.

My local instance has 6.3 upgraded to 6.3.2. But QA, Production has 6.3 with sp1, application code. Now sp2 installed in QA and did mvn build, deploy.

My local instance worked fine having acs commons, core components packages installed( 6.3 applied sp2 directly)

QA instance 6.3 with sp1, upgraded with sp2.

QA has packages in package manager but not installed. Had to do manual install.

Hemant_arora
Level 8
May 9, 2018

I tried to reproduce on 6.4 the above but i was successfully able to install acs commons package

here is what i did:

Added the below dependency to pom.xml under ui.content  and subpackages section under configuration

<dependency>

    <groupId>com.adobe.acs</groupId>

    <artifactId>acs-aem-commons-content</artifactId>

    <version>3.15.2</version>

    <type>content-package</type>

    <classifier>min</classifier> <!-- optional, see below -->

</dependency>

<subPackages>

<subPackage>

<groupId>com.adobe.acs</groupId>

<artifactId>acs-aem-commons-content</artifactId>

<filter>true</filter>

</subPackage>

</subPackages>

and for core-wcm-components-all 2.0.6 add the dependency to pom.xml under ui.apps  and subpackages section under configuration as below

<subPackages>

                        <subPackage>

                            <groupId>com.adobe.cq</groupId>

                            <artifactId>core.wcm.components.all</artifactId>

                            <filter>true</filter>

                        </subPackage>

                    </subPackages>

<dependency>

<groupId>com.adobe.cq</groupId>

<artifactId>core.wcm.components.all</artifactId>

<type>content-package</type>

<version>1.0.6</version>

<scope>provided</scope>

</dependency>

Level 2
June 16, 2018

Thanks @Hemant arora that's exactly what I've got already. But no auto-installation for me. 

I'm running with

My maven output is as per my previous comment.  What maven output do you see?

Hemant_arora
Level 8
June 18, 2018

This is maven console log

[INFO] Embedding --- Sub Packages: groupId=com.adobe.cq,artifactId=core.wcm.components.all,filter=true,excludeTransitive=false ---

[INFO] Embedding com.adobe.cq:core.wcm.components.all:zip:2.0.8 -> jcr_root/etc/packages/adobe/cq60/core.wcm.components.all-2.0.8.zip

[INFO] Merging D:\myproject\AEM\apps\src\main\content\META-INF\vault\filter.xml with inlined filter specifications.

[INFO] Building content-package: D:\myproject\AEM\apps\target\myproject.ui.apps-1.0-SNAPSHOT.zip

[INFO]

[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ myproject.ui.apps ---

[INFO] Installing D:\myproject\AEM\apps\target\myproject.ui.apps-1.0-SNAPSHOT.zip to C:\Users\hemant\.m2\repository\myproject\myproject.ui.apps\1.0-SNAPSHOT\myproject.ui.apps-1.0-SNAPSHOT.zip

[INFO] Installing D:\myproject\AEM\apps\pom.xml to C:\Users\hemant\.m2\repository\myproject\myproject.ui.apps\1.0-SNAPSHOT\myproject.ui.apps-1.0-SNAPSHOT.pom

[INFO]

[INFO] --- content-package-maven-plugin:0.5.1:install (install-package) @ myproject.ui.apps ---

[INFO] Installing myproject.ui.apps (D:\myproject\AEM\apps\target\myproject.ui.apps-1.0-SNAPSHOT.zip) to http://localhost:4505/crx/packmgr/service.jsp

[INFO] myproject:myproject.ui.apps, 1.0-SNAPSHOT (5813774 bytes)

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

Level 2
June 18, 2018

thanks Hemant arora​.  For the maven BUILD stages your output looks the same as mine.  What I was specifically hoping you would copy n paste in your reply is the maven content-package-maven-plugin output showing wcm-components-all getting installed (similar to what I put above for acs commons, i.e.

Otherwise I'm still unsure about whether you can successfully auto-install wcm components all (as well as acs commons)

Hemant_arora
Level 8
June 18, 2018
Content backfill required
Level 2
June 18, 2018

thanks Hemant arora

I'm not clear why it's not auto-installing for me...

My local aem instance is v 6.3, service pack 1 (limiting the wcm components all versions I can use)

I'm running mvn clean install -P autoInstallPackage

I also posted an issue on the github project - maintainers there asked me to include my POM (which I have done here)

Hemant_arora
Level 8
June 19, 2018

install a vanilla instance , create a new project using archetype 13 and then make the pom changes and build again.

Level 2
June 19, 2018

Thanks for your help Hemant arora

I created a lazybones project yesterday and included core components 2.0.8 in aem 6.3 with service pack 2.

Went in fine so presumably the problem is elsewhere in my project pom(s).  Interestingly I don't get any maven output along the lines of

but maybe that's down to plugin versions or other configuration.

Hemant_arora
Level 8
June 19, 2018

Set verbose to true in pom.xml of ui.apps module to get the output of installation