问题
I want to remove some of the configuration from the Alfresco Share web.xml
. That file lives at $TOMCAT_HOME/webapps/share/WEB-INF/web.xml
so I added the customized file to $AMP_FOLDER/_share/config/META-INF/WEB-INF/web.xml
. The WEB-INF
folder lives at the same level as other customizations - compentents
and css
- which get mapped to the share.war
correctly. The web.xml
file appears to just get ignored though (find $TOMCAT_HOME/webapps/share -name web.xml
only finds the old version of the file).
How do I tell the amp file where to put the web.xml
file?
All the documentation I have found says to not override the web.xml
file, but I need to remove some of the filters that are being applied.
回答1:
Use -force parameter when running the apply amps and don't put your web.xml in WEB-INF because mmt ignores that.
Use for example in the file-mapping.properties:
/web/WEB-INF=/WEB-INF
and
java -jar alfresco-mmt.jar install <AMPFileLocation> <WARFileLocation> -force
来源:https://stackoverflow.com/questions/18729733/how-do-you-override-web-xml-in-an-alfresco-share-amp