-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSGi bundle not getting uninstalled in case un-installation is done after new version installation of AEM package #68
Comments
Just to make sure I understand your issue,are you using the IDE tooling just to create the project from the archetype? |
Yes @rombert, I am using IDE tooling to create project from the archetype. |
Some more additional info @rombert , From the archetypes list Following works fine
While following does not
The
This exclude pattern is not present in the Did few tests, after we remove this from filter, the Looks like issue with aem-project-archetype. Do you think the same? |
I think the problem is in the nature of the chosen archetype behavior: @sandeepkumar03, as you pointed out the /apps/myapp/install folder is excluded from the package - with the idea that it gets installed directly by a bundle upload (via org.apache.sling.tooling.support.install bundle). That also means that if you remove the package, that the uploaded bundle is independent and thus doesn't get removed. |
@eglistefan One observation is that, the problem occurs only when we overwrite the package and then uninstall. If we just install package and uninstall package, the OSGi bundle is removed from OSGi console automatically, though filter definition has exclude pattern, still it works fine. If removing the exclude pattern from filter seems to be fine, would raise an issue with aem-project-archetype Let me know, if I should close this issue. |
@sandeepkumar03 - haven't tested the different when creating the projects via maven vs via the eclipse plugin - but what I can see is that uninstalling version B from package manager leaves version A installed - which means it doesn't remove the /apps/myapp/install - which is why the bundle is still there. So deleting after uninstall of B, then also uninstalling A removes the bundle. |
Closing this issue, as the issue is raised for archetype separately. |
When we are overwriting a new package with new version, on un-installation the OSGi bundle is not getting removed from web console. Following are the steps to reproduce.
Additional Info - The issue is not reproducible when generating mutimodule project through maven archetype through command line. But for the project generated through AEM plugin gives issue. Had raised ticket with Day Care, they redirected to Github page of AEM plugin.
AEM Version - AEM 6.1
The text was updated successfully, but these errors were encountered: