Bryan

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            37 Posts :: 3 Stories :: 24 Comments :: 0 Trackbacks

           

          An archetype is a template project for a particular type of module, which ranges from a simple JAR or WAR module to a more complete template application for many popular frameworks.

          Each Maven project needs some coordinates to allow it to be identified by other Maven projects. These are called the group ID, artifact ID, and version.

          Group ID: An identifier for a collection of related modules. This is usually a hierarchy that starts with the organization that produced the modules, and then possibly moves into the increasingly more specialized project or sub-projects that the artifacts are a part of. This can also be thought of as a namespace, and is structured much like the Java package system.
          Artifact ID: The Artifact ID is a unique identifier for a given module within a group.
          Version: The version is used to identify the release or build number of the project.




          The POM (Project Object Model) contains important pieces of information about the project, which include:
          The Maven coordinate of the project for reuse by other Maven projects
          The project name, description and license
          Project resource information such as the location of source control, issue tracking, and continuous integration
          The developers, contributors and organizations participating in the project
          The POM will also include information about how the project should be built,
          such as:
          The source directory layout
          Dependencies on other projects
          Build requirements (by means of Maven plugins) and configuration

          In Maven, the build is run using a predefined, ordered set of steps called the build lifecycle. The individual steps are called phases, and the same phases are run for every Maven build using the default lifecycle, no matter what it will produce. The build tasks that will be performed during each phase are determined by the configuration in the project file, and in particular the selected packaging.
          Some of the most commonly used lifecycle phases in the default lifecycle are:
          validate—checks build prerequisites
          compile—compiles the source code identified for the build
          test—runs unit tests for the compiled code
          package—assembles the compiled code into a binary build result
          install—shares the build with other projects on the same machine
          deploy—publishes the build into a remote repository for other projects to use

          The following is a complete list of phases available in Maven 2.2:
          validate, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, test, prepare-package, package, integration-test, verify, install, deploy.


          http://www.sonatype.com/people/2009/07/from-apache-archiva-to-sonatype-nexus/#comments

          Install Oracle Jdbc driver in your Maven local repository
          http://www.springfuse.com/install-oracle-jdbc-driver-in-maven-repository

          Maven Profile
          http://www.manydesigns.com/documentation/tutorials/using-maven-profiles-and-resource-filtering.html 

           maven倉庫管理器Nexus
          http://www.gbsou.com/2009/11/20/1527.html 

           

           

           

           

          posted on 2010-12-02 20:10 Life is no respector of any genius. 閱讀(467) 評論(0)  編輯  收藏 所屬分類: Maven

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 咸阳市| 甘孜| 遂溪县| 泗水县| 南部县| 鄂温| 玉门市| 商丘市| 土默特左旗| 温州市| 平凉市| 安达市| 临高县| 乃东县| 通州市| 泗水县| 浙江省| 平原县| 广饶县| 颍上县| 沛县| 延庆县| 沙湾县| 乌鲁木齐市| 大丰市| 祁门县| 合阳县| 旺苍县| 新田县| 南丰县| 白山市| 沙雅县| 兰坪| 巫溪县| 桦南县| 鲁山县| 那坡县| 磐石市| 龙山县| 丰顺县| 贺兰县|