组装WAR时出错-需要webxml属性 [英] Error assembling WAR - webxml attribute is required

查看:65
本文介绍了组装WAR时出错-需要webxml属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行 ./mvnw 构建时,我使用jhipster应用程序进行以下操作:

I'm hitting the following with a jhipster app when running the ./mvnw build:

组装WAR时出错:需要webxml属性(如果在更新模式下执行,则必须预先存在WEB-INF/web.xml)

推荐答案

此微服务的回归已在4.11.0中进行了报告,并已修复:

This regression for microservices has been reported in 4.11.0 and fixed: https://github.com/jhipster/generator-jhipster/pull/6742. New release should be available tonight.

同时,您可以通过将 failOnMissingWebXml 设置为false来在自己的pom.xml中对其进行修复:

In the meantime you can fix it in your own pom.xml by setting failOnMissingWebXml to false:

               <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-war-plugin</artifactId>
                    <version>${maven-war-plugin.version}</version>
                    <configuration>
                        <failOnMissingWebXml>false</failOnMissingWebXml>

这篇关于组装WAR时出错-需要webxml属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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