我有一个maven pom.xml文件。我运行命令
clean package jboss-as:deploy
它工作正常。当pom.xml中没有声明目录时,maven如何确定要包含哪些文件? maven默认为{current_directory} / src吗?这记录在哪里?
答案 0 :(得分:2)
Maven希望您的项目使用标准目录布局,如文档here中所述。
From the docs:Having 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.