简体   繁体   中英

Why is maven looking for `webapp\WEB-INF\web.xml` instead of `web-app\WEB-INF\web.xml`

I have a Maven/Grails app that almost builds, but fails to find web.xml at [my-app]\\webapp\\WEB-INF\\web.xml . But the directory structure contains a web-app folder, as usual, not webapp .

Is this a matter of an old version of maven interacting with Grails in a strange way? Or is it a bad error message? Or any other ideas?

The standard for maven is to name the directory "webapp" not "web-app"

http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM