Bundle is build success fully but it status showing still in installed state | Community
Skip to main content
September 20, 2024
Solved

Bundle is build success fully but it status showing still in installed state

  • September 20, 2024
  • 1 reply
  • 771 views

I have a bundle which was deployed successfully, but when I checked the bundle console, the status was still in the ‘installed’ state. Upon verification, I found that the bundle has a dependency error stating: ‘javaslang, version=[2.0,3) – Cannot be resolved.’ please help me out here.

 

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

If this is some external dependency which doesn't come out of the box in AEM and which you are trying to use in AEM, then you will have to embed that jar as well in your package. You can check this  
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/embedding-and-installing-external-jar-to-aemacs-instance/m-p/448021 
But essentially you can go to your all/pom.xml. Locate filevault-package-maven-plugin config section and add new embed entry for your jar and respective dependency as well. For E.g:

<embedded> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.resource.filter</artifactId> <target>/apps/eon-de-relaunch-vendor-packages/application/install</target> </embedded>

And the dependency

<!-- Sling Resource Filter --> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.resource.filter</artifactId> <version>1.0.0</version> <scope>provided</scope> </dependency>

This is just sample, you need to provide your own dependency details.
Hope this helps

1 reply

h_kataria
Community Advisor
h_katariaCommunity AdvisorAccepted solution
Community Advisor
September 20, 2024

If this is some external dependency which doesn't come out of the box in AEM and which you are trying to use in AEM, then you will have to embed that jar as well in your package. You can check this  
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/embedding-and-installing-external-jar-to-aemacs-instance/m-p/448021 
But essentially you can go to your all/pom.xml. Locate filevault-package-maven-plugin config section and add new embed entry for your jar and respective dependency as well. For E.g:

<embedded> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.resource.filter</artifactId> <target>/apps/eon-de-relaunch-vendor-packages/application/install</target> </embedded>

And the dependency

<!-- Sling Resource Filter --> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.resource.filter</artifactId> <version>1.0.0</version> <scope>provided</scope> </dependency>

This is just sample, you need to provide your own dependency details.
Hope this helps