在战争中如何设置jar overlay的targetPath? [英] How do you set the targetPath of jar overlay in a war?

查看:104
本文介绍了在战争中如何设置jar overlay的targetPath?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读战争插件的覆盖文档,说:

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

targetPath - the target relative path in the webapp structure, which is only available for overlays of type war. By default, the content of the overlay is added in the root structure of the webapp.

但是我试图覆盖一个罐子,而不是战争.我不希望这些文件位于根目录中.

But I'm trying to overlay a jar, not a war. I don't want the files to be at the root directory.

推荐答案

回答我自己的问题:

事实证明,文档是错误的,您可以使用类型为jar targetPath .

Turns out that documentation is wrong and you can use a targetPath with a type, jar.

这篇关于在战争中如何设置jar overlay的targetPath?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆