kolorobot / spring-boot-thymeleaf

A simple web application in Spring Boot and Thymeleaf
335 stars 256 forks source link

mvn clean package -DskipTests not working , web.xml error #2

Closed radut closed 8 years ago

radut commented 9 years ago

Hi..

[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ spring-boot-thymeleaf --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-war-plugin:2.2:war (default-war) @ spring-boot-thymeleaf --- [INFO] Packaging webapp [INFO] Assembling webapp [spring-boot-thymeleaf] in [/Users/tr/git/spring-boot-thymeleaf/target/spring-boot-thymeleaf-1.0] [INFO] Processing war project [INFO] Webapp assembled in [263 msecs] [INFO] Building war: /Users/tr/git/spring-boot-thymeleaf/target/spring-boot-thymeleaf-1.0.war [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.135 s [INFO] Finished at: 2015-10-12T20:47:33+03:00 [INFO] Final Memory: 28M/216M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project spring-boot-thymeleaf: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

it seems that you must either configure maven-war-plugin , with failOnMissing-false, either create a web.xml file

peterbollen commented 8 years ago

Did you found a solution for this?

peterbollen commented 8 years ago

Ok, found it :+1: http://stackoverflow.com/questions/23114155/spring-boot-without-parent-pom-xml-cannot-generate-war-packaging