开发者

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

开发者 https://www.devze.com 2023-03-03 18:15 出处:网络
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 webap

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号