【问题标题】:Error assembling WAR - webxml attribute is required组装 WAR 时出错 - 需要 webxml 属性
【发布时间】:2018-05-09 13:03:17
【问题描述】:

在运行 ./mvnw 构建时,我使用 jhipster 应用程序遇到了以下问题:

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

【问题讨论】:

    标签: jhipster


    【解决方案1】:

    此微服务回归已在 4.11.0 中报告并修复:https://github.com/jhipster/generator-jhipster/pull/6742。新版本应该会在今晚发布。

    与此同时,您可以在自己的 pom.xml 中通过将 failOnMissingWebXml 设置为 false 来修复它:

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

    【讨论】:

      猜你喜欢
      • 2014-10-29
      • 1970-01-01
      • 2013-08-13
      • 2011-07-18
      • 2016-01-28
      • 1970-01-01
      • 2015-11-26
      • 2018-11-19
      • 2017-12-20
      相关资源
      最近更新 更多