Sealyu

          --- 博客已遷移至: http://www.sealyu.com/blog

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            618 隨筆 :: 87 文章 :: 225 評論 :: 0 Trackbacks

          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.

          The next section documents the directory layout expected by Maven and the directory layout created by Maven. Please try to conform to this structure as much as possible; however, if you can't these settings can be overridden via the project descriptor.

          src/main/java Application/Library sources
          src/main/resources Application/Library resources
          src/main/filters Resource filter files
          src/main/assembly Assembly descriptors
          src/main/config Configuration files
          src/main/webapp Web application sources
          src/test/java Test sources
          src/test/resources Test resources
          src/test/filters Test resource filter files
          src/site Site
          LICENSE.txt Project's license
          README.txt Project's readme

          At the top level files descriptive of the project: a pom.xml file (and any properties, maven.xml or build.xml if using Ant). In addition, there are textual documents meant for the user to be able to read immediately on receiving the source: README.txt, LICENSE.txt, etc.

          There are just two subdirectories of this structure: src and target. The only other directories that would be expected here are metadata like CVS or .svn, and any subprojects in a multiproject build (each of which would be laid out as above).

          The target directory is used to house all output of the build.

          The src directory contains all of the source material for building the project, its site and so on. It contains a subdirectory for each type: main for the main build artifact, test for the unit test code and resources, site and so on.

          Within artifact producing source directories (ie. main and test), there is one directory for the language java (under which the normal package hierarchy exists), and one for resources (the structure which is copied to the target classpath given the default resource definition).

          If there are other contributing sources to the artifact build, they would be under other subdirectories: for example src/main/antlr would contain Antlr grammar definition files.

          posted on 2009-12-31 14:00 seal 閱讀(533) 評論(1)  編輯  收藏 所屬分類: Maven

          評論

          # re: Maven Standard Directory Layout 2010-01-01 05:15 dH31Helen
          It's not so simply to bring a professional written essay, preferably if you are intent. I give advice you to set <a href=" http://www.qualityessay.com">buy essay</a> and to be devoid from scruple that your work will be done by paper writing services  回復  更多評論
            

          主站蜘蛛池模板: 德昌县| 吐鲁番市| 确山县| 吉木乃县| 通江县| 云南省| 抚州市| 米泉市| 秭归县| 建水县| 海原县| 卓尼县| 烟台市| 惠州市| 永兴县| 东方市| 延庆县| 长宁区| 贡觉县| 乳源| 启东市| 通州市| 汽车| 新田县| 安达市| 西乌| 岳池县| 沛县| 通江县| 神农架林区| 和静县| 成武县| 二手房| 东源县| 泽普县| 儋州市| 牙克石市| 三台县| 独山县| 新竹市| 福安市|