【发布时间】:2011-03-21 07:05:45
【问题描述】:
我是 Maven 新手,并且在遵循 http://docs.jboss.org/hibernate/stable/core/reference/en/html_single/#tutorial-firstapp-mvn 的 Hibernate 教程时浏览了文档。
我已经安装了 Maven 并成功设置了一个网络应用程序,但这并不包含本教程中提到的所有标准目录。我要疯了吗?
在构建我的 Maven 项目时,我使用的是 maven-archetype-webapp。这给了我arh-webapp\src\main\resources 和arh-webapp\src\main\webapp 目录,但我缺少链接http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html 中提到的很多目录。
当然我不必手动添加这些?如果没有,那么 Hibernate 文档没有提到使用什么原型来实现他们教程中使用的目录结构。请有人能启发我。
为了拥有上述目录和src/main/java 目录,我需要使用什么原型?如果没有这样的原型,那么可以使用 Maven 轻松附加这些原型吗?以及如何?
【问题讨论】:
标签: maven-2 standards conventions directory-structure