MAVEN 基本的一些概念 (笔记—补充中。。。。。)

MAVEN HELP :

      help:active-profiles :
            列出当前构建中活动的Profile(项目的,用户的,全局的)。
      help:effective-pom:
            显示当前构建的实际POM,包含活动的Profile。
      help:effective-settings:
            打印出项目的实际settings, 包括从全局的settings和用户级别settings继承的配置。
      help:describe:
            描述插件的属性。它不需要在项目目录下运行。但是你必须提供你想要描述插件的 groupId 和 artifactId。在为这个命令我们常用,把这查看这个的命令写到这:
 mvn help:describe -Dplugin=help -Dfull -Dgoal=describe


站点生成和报告 (Site Generation and Reporting)

      mvn site 


项目对象模型 (Project Object Model) :

      

Maven插件和目标 (Plugins and Goals):

      插件:

     

Maven生命周期 (Lifecycle):


archetype

        模版,原型.An archetype is defined as “an original model or type after which other similar things are patterned; a prototype.”

artifact  : 

        产物,通过maven生成的东西,

Maven的坐标(coordinates) :

        groupId: 团体标识.约定是,它以创建这个项目的组织名称的逆向域名(reverse domain name)开头。

        artifactId: 在groupId下的表示一个单独项目的唯一标识符。
        version: 一个项目的特定版本。正在开发中的项目可以用一个特殊的标识,这种标识给版本加上一个“SNAPSHOT”的标记。

        packaging: 项目的类型,默认是jar,描述了项目打包后的输出。类型为jar的项目产生一个JAR文件,类型为war的项目产生一个web应用。

        classifiers: 很少用。

约定优于配置(convention over configuration)




猜你喜欢

转载自blog.csdn.net/zhaozhbcn/article/details/43527343
今日推荐