java - 在 war 中如何设置jar覆盖的targetPath?

标签 java maven maven-war-plugin

我正在阅读the war plugin's overlay documentation它说:

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.

但我试图覆盖一个 jar ,而不是一场 war 。我不希望这些文件位于根目录中。

最佳答案

回答我自己的问题:

事实证明文档是错误的,您可以将 targetPath 与类型 jar 一起使用。

关于java - 在 war 中如何设置jar覆盖的targetPath?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36895963/

相关文章:

java - 如何使用 Eclipse 精确检测变量值何时发生变化?

java - Spring Boot 忽略 logback-spring.xml

java - JSF 中 render=true/false 问题的奇怪问题

maven - 什么是传递 Maven 依赖项?

android - Android库添加第三方库依赖

java - "mvn package"虽然在 Eclipse 中运行此 Maven Web 应用程序失败

java - 使用 Maven 从单个通用项目创建不同的 war

java - 从多项目 Maven 配置生成 WAR 文件

java - JDK/JRE 源代码与匹配的 JSSE (SSL) 源代码和匹配的可运行 JDK/JRE?

java - 为什么在方法中抛出一般异常是不好的?