Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Packages in apps/system/install is wiped off

brolinuk
Level 2
Level 2

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!

1 Accepted Solution
raj_mandalapu
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

0 Replies
raj_mandalapu
Correct answer by
Community Advisor
Community Advisor

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

Jörg_Hoh
Employee
Employee

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.

brolinuk
Level 2
Level 2

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

Jörg_Hoh
Employee
Employee

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.