본문 바로가기

Others/Error

[Maven] package 할 시 발생하는 'webxml attribute is required' 에러

아래와 같이 pom.xml 설정으로 해결이 가능하다.

방법 1

<properties>
 <java.version>1.7</java.version>
 <tomcat.version>7.0.78</tomcat.version>
 <failOnMissingWebXml>false</failOnMissingWebXml>
 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>



방법 2

<build>

 <plugins>

  <plugin>

   <groupId>org.springframework.boot</groupId>

   <artifactId>spring-boot-maven-plugin</artifactId>

   <version>1.5.3.RELEASE</version>

  </plugin>

  <plugin>

   <groupId>org.apache.maven.plugins</groupId>

   <artifactId>maven-war-plugin</artifactId>

   <configuration>

    <failOnMissingWebXml>false</failOnMissingWebXml>

   </configuration>

  </plugin>

 </plugins>

</build>




참고
https://stackoverflow.com/questions/5351948/webxml-attribute-is-required-error-in-maven

 

"webxml attribute is required" error in Maven

I am getting the following error: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) I have got web.xml in right place which is

stackoverflow.com

[출처] http://1004lucifer.blogspot.com/2017/06/maven-package-webxml-attribute-is.html

 

[Maven] package 할 시 발생하는 'webxml attribute is required' 에러

프로젝트를 war 파일로 생성하기 위해 package 를 수행했는데 아래와 같은 오류가 발생을 했다. 1004lucifer [INFO] ----------------------------------------------------...

1004lucifer.blogspot.com