Error assembling WAR - webxml attribute is required

我的未来我决定 提交于 2019-12-11 16:55:29

问题


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

Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)


回答1:


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.

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>


来源:https://stackoverflow.com/questions/47491488/error-assembling-war-webxml-attribute-is-required

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!