将我们的自定义 urlrewriterules.xml 和 domainplittings.xml 文件添加到“staticfiles\share\system\config\cluster\”文件夹中的墨盒后,我们无法再执行 deployServer gradle 任务。任务失败并出现以下错误:
* What went wrong:
Execution failed for task ':init_project:deployShareFiles'.
> Could not deploy files of task :init_project:deployShareFiles
> Task :init_project:deployShareFiles: Resource 'C:\Work\Project\intershop-ci\sources\projects\webshop\build\server\share\system\config\cluster\domainsplittings.xml' already defined for Task :bc_urlrewrite:deployShareFiles
> Task :init_project:deployShareFiles: Resource 'C:\Work\Project\intershop-ci\sources\projects\webshop\build\server\share\system\config\cluster\urlrewriterules.xml' already defined for Task :bc_urlrewrite:deployShareFiles
有谁知道为什么会这样,我们如何添加我们自己的 url 重写规则而不在每次 deployServer 之后编辑这些文件(从 bc_urlrewrite 盒复制系统规则)?
谢谢你的回答!