I have created project (say project A) just pushing AWS libraries to AEM in the apps/system/install folder, so that my other project (say project B) running on the same author instance can use those libraries within OSGI framework. After project A has pushed the libraries, I can see them in apps/system/install. However, when I tried to build project B, the command mvn clean install -PautoInstallPackage will wipe whatever project A added to apps/system/install. So that project B bundle will not be active as it still unable to find those libraries. Any suggestion how to prevent Project B to wipe the content in the apps/system/install? or there is an alternative?
many thanks!
Solved! Go to Solution.
In project B, you need to change the configuration in the filter.xml file.
ui.apps\src\main\content\META-INF\vault\filter.xml
Open the filter.xml file and look for <filter root="/apps/system/install"/> if you see that in project B then this is overriding Project A folder
In project B, you need to change the configuration in the filter.xml file.
ui.apps\src\main\content\META-INF\vault\filter.xml
Open the filter.xml file and look for <filter root="/apps/system/install"/> if you see that in project B then this is overriding Project A folder
Excellent answer Raja!
Views
Replies
Total Likes
Just choose different paths where you drop your bundles. And btw /apps/system* is often used by product packages (especially service packs). I don't know their package rules.
Views
Replies
Total Likes
if I choose a different path, would jars be installed? I thought it has to be those specific path? If not what what is requirement for create/specify a new path
Views
Replies
Total Likes
yes, the path for jar (bundles) can be choose freely according to this pattern:
/apps/*/*/install
/apps/*/install
that means a folder named install must be on third or fourth level inside /apps. You can choose the names of the path elements freely.
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies