Maven Snippet - war 패키징

  • Maven과 Spring으로 이것 저것 하던 도중, 기존작업하던 Spring MVC 프로젝트 구조에서 webapp폴더와 web.xml 파일 구조가 왜이렇게 나오는 걸까 호기심에 기존 maven으로 콘솔프로그램을 jar로 패키징하던 사이드 프로젝트를 war로 변경하였더니 아래와 같은 에러가 발생
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project spring4ex: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]