cant install bundle | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Sep 25, 2017 9:44 PM UTC

My local AEM 6.3 has the bundle "com.adobe.cq.sightly.cq-wcm-sightly-extension" in the version 1.4.28; it exports the package "com.adobe.cq.sightly" in version 3.1.0.

If your built bundle demands a version range  [2.5,3), it's built against a wrong version of the uber.jar; I also just checked the uber.jar and it has the very same version number 3.1.0 listed for this package.

Jörg

11 replies

Level 2
Mar 19, 2018 8:24 PM UTC

Ran into similar issue.  The cause was found to do with following declaration in the parent pom.xml overwritten uber-jar 6.3.0 declaration.

                <plugin>

                    <groupId>org.apache.felix</groupId>

                    <artifactId>maven-scr-plugin</artifactId>

                    <version>1.20.0</version>

                </plugin>

                <plugin>

                    <groupId>org.apache.felix</groupId>

                    <artifactId>maven-bundle-plugin</artifactId>

                    <version>2.5.3</version>

                </plugin>

Removing these declarations fixed the issue for me.

Translate
joerghoh
joerghohAccepted solution
Employee
Sep 25, 2017 9:44 PM UTC

My local AEM 6.3 has the bundle "com.adobe.cq.sightly.cq-wcm-sightly-extension" in the version 1.4.28; it exports the package "com.adobe.cq.sightly" in version 3.1.0.

If your built bundle demands a version range  [2.5,3), it's built against a wrong version of the uber.jar; I also just checked the uber.jar and it has the very same version number 3.1.0 listed for this package.

Jörg

Translate
Prince_Shivhare
New Participant
Sep 25, 2017 4:59 PM UTC

is your jar downloaded ?

Translate
Level 3
Sep 25, 2017 3:35 PM UTC

im pretty sure im using 6.3

im going to create another project and see if it works...

Translate
smacdonald2008
Level 10
Sep 25, 2017 2:50 PM UTC

Your project is not picking up the 6.3 UBER. If it was - you would see:

See if you can build this project and get it deployed to AEM 6.3 - it will resolve all of the HTL dependencies for 6.3:

Creating an Adobe Experience Manager 6.3 HTL component that uses the WCMUsePojo API

Translate
Level 3
Sep 25, 2017 2:32 PM UTC

im using 6.3

Translate
smacdonald2008
Level 10
Sep 25, 2017 2:07 PM UTC

YOu are not building the correct version of AEM UBER. If you are using AEM 6.3 - use UBER 6.3. What version are you using?

Translate
Level 3
Sep 25, 2017 11:10 AM UTC

im actually done, i have installed the package... the one that causing it was the path to the /apps/wknd/install folder.

my problem right now is this one

Translate
kautuk_sahni
Employee
Sep 25, 2017 8:48 AM UTC

1. [ERROR] Failed to execute goal org.apache.sling:maven-sling-plugin:2.1.0:install (install-bundle) on project testsite-services: Installation on http://localhost:4502/apps/XYZ/install failed, cause: Installation failed, cause: Conflict -> [Help 1]

Root cause: This error occurred because build script is trying to deploying the packet under /apps/XYZ/install directory which actually does not exists.

Create folder named "XYZ" & "XYZ/install" under "apps". Use CRXDE Light to create folders.

2. Remove the <usePut> tag

Source:- Abobe CQ5 – Deployment error of code – MojoExecutionException – Need is the mother of invention …

~kautuk

Translate
Kautuk Sahni
joerghoh
Employee
Sep 25, 2017 5:30 AM UTC

The Maven build fails in the step "install", when "localhost:4502" reports an internal server error. You should check what's the reason for this and fix it. And then try again.

This is not a problem of the maven build itself.

Jörg

Translate