【问题标题】:maven build files, default directoriesmaven构建文件,默认目录
【发布时间】:2014-12-16 18:36:48
【问题描述】:

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

clean package jboss-as:deploy

而且效果很好。当 pom.xml 中没有声明目录时,maven 如何确定要包含哪些文件? maven 默认为 {current_directory}/src 吗?这是在哪里记录的?

【问题讨论】:

    标签: java maven build pom.xml


    【解决方案1】:

    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.

    【讨论】:

      猜你喜欢
      • 2015-01-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多