1

我有一个看起来像这样的 Maven 依赖项:例如 <dependency> <type>war</type> <scope>runtime</scope>... </dependency> ,它与我自己的 Web 文件(它提供 index.jsp)有冲突。在某个子路径下移动它提供的所有资源的正确方法是什么?可能/depname/index.jsp

4

1 回答 1

1

我相信您想使用覆盖插件的targetPath 属性

targetPath - webapp 结构中的目标相对路径,仅适用于 war 类型的覆盖。默认情况下,叠加层的内容会添加到 webapp 的根结构中。

于 2013-01-09T01:42:29.160 回答