如何在 Alfresco Share 放大器中覆盖 web.xml? [英] How do you override web.xml in an Alfresco Share amp?
问题描述
我想从 Alfresco Share web.xml
中删除一些配置.该文件位于 $TOMCAT_HOME/webapps/share/WEB-INF/web.xml
所以我将自定义文件添加到 $AMP_FOLDER/_share/config/META-INF/WEB-INF/web.xml
.WEB-INF
文件夹与其他自定义项位于同一级别 - compentents
和 css
- 映射到 share.war
正确.web.xml
文件似乎只是被忽略了(find $TOMCAT_HOME/webapps/share -name web.xml
只能找到该文件的旧版本).>
如何告诉 amp 文件将 web.xml
文件放在哪里?
我发现的所有文档都说不要覆盖 web.xml
文件,但我需要删除一些正在应用的过滤器.
在运行应用放大器时使用 -force 参数,不要将 web.xml 放在 WEB-INF 中,因为 mmt 会忽略它.
例如在 file-mapping.properties 中使用:
/web/WEB-INF=/WEB-INF
和
java -jar alfresco-mmt.jar install <WARFileLocation>-力量
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.
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
这篇关于如何在 Alfresco Share 放大器中覆盖 web.xml?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!