How do you override web.xml in an Alfresco Share amp?

非 Y 不嫁゛ 提交于 2019-12-24 00:59:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!