cancel
Showing results for 
Search instead for 
Did you mean: 

modify web.xml in amp extensions

vban
Champ in-the-making
Champ in-the-making
Hi

I've added 2 amp extensions for Share and each of them overrides web.xml, adds some filters, is there any  way to merge web.xml changes in the resulting war file? Now I can see only two solutions:
1. apply ALL changes in every amp's web.xml
2. create separate amp with the aggregated web.xml

in both cases I can not deploy a single amp separately and run integration tests for example.

May be someone invented a better approach for this.
Many thanks Smiley Happy

2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

an adapted, aggregated web.xml should only be added in the final WAR build project, where you perform your AMP to WAR installations / overlay. I see no other way of doing this.

Why do your AMPs need to modify the web.xml? In all my years of Alfresco development I have never needed to do this except for some personal experiments…

Regards
Axel

vban
Champ in-the-making
Champ in-the-making
>>Why do your AMPs need to modify the web.xml?
I need filters to be added for SSO integration and for monitoring tools.