maven构建文件,默认目录

时间:2014-10-21 13:49:14

标签: java maven build pom.xml

我有一个maven pom.xml文件。我运行命令

clean package jboss-as:deploy

它工作正常。当pom.xml中没有声明目录时,maven如何确定要包含哪些文件? maven默认为{current_directory} / src吗?这记录在哪里?

1 个答案:

答案 0 :(得分:2)

Maven希望您的项目使用标准目录布局,如文档here中所述。

From the docsHaving a common directory layout would allow for users familiar with one Maven project to immediately feel at home in another Maven project. The advantages are analogous to adopting a site-wide look-and-feel.