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 閱讀(517) 評論(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  回復  更多評論
            

          主站蜘蛛池模板: 鄂伦春自治旗| 邵东县| 上犹县| 石柱| 尉犁县| 揭阳市| 丰原市| 兰溪市| 错那县| 高尔夫| 三江| 丰镇市| 许昌县| 中牟县| 治县。| 九江市| 长海县| 敖汉旗| 大宁县| 天津市| 肥西县| 太原市| 尉犁县| 萍乡市| 玉门市| 田阳县| 五寨县| 佛坪县| 莱阳市| 葵青区| 汶川县| 辽阳市| 德保县| 海原县| 仙居县| 夏津县| 楚雄市| 同仁县| 青龙| 错那县| 砚山县|