1、坐标-找到项目依赖的重要依据

<groupId>cmbc.com.cn</groupId>
<artifactId>myapp</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>

说明:a、groupId、artifactId、version必须配置,packaging为可选配置,未配置则默认为jar

   b、项目构件名称与坐标相对应,通常为artifactId-version.packaging,上述坐标对应构件名称为

      myapp-1.0-SNAPSHOT

2、依赖配置

<project> 

  <dependencies>  可以包含多个<dependency>

    <dependency>
<groupId>...</groupId>
<artifactId>...</artifactId>
<version>...</version>
<type>...</type> 坐标类型,对应项目坐标定义的packaging
<scope>...</scope> 依赖范围
<optional>...</optional> 标记依赖是否可选
<exclusions>  排除传递性依赖
...
</exclusions>
</dependency> </dependencies> </project>

3、依赖详述

  • 依赖范围

a、依赖范围种类

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhQAAAEQCAIAAABnYXo5AAA6wUlEQVR4nO2dXYwd5Z3mfbXizrlYiblCc+XJldc3lufClpAsvCBbaxhBiIQTDXYumkFOIvCicTbL4GCRlkliJ4axFw/uCeuPVW/iGAs6AwZiB1CLBWMJy9iKDQk2YwecdGSdYaNotcP+tp/lvy/11eecPn2qzjlP6adWdZ233nqrTp3nef/vR9Wi1r/8yRhjjOmIRbWXwBhjzMBh8zDGGNMxNg9jjDEdY/MwxhjTMTYPY4wxHWPzMMYY0zE2D2OMMR1j8zDGGNMxNg9jjDEdY/MwxhjTMTYPY4wxHWPzMMYY0zE2D2OMMR1j8zDGGNMxNg9jjDEdY/MYdSamTq/beuimu3cuuvkRY3oCt9MtDz6za3K69tvbLBw2j9Hlw4+u8wu/8+HJw8fPnH3v49rLY4YGbqcjJ89t2nFs+dg+31rDis1jdME5CDtqL4YZYl556/2lG/dcm/mk9pKYnmPzGFF2TU5TMay9GGbo2TZx4oEnX6i9GKbn2DxGFMKOIyfP1V4MM/ScOn9lyYbdtRfD9Bybx4iyeO34hx9dr70YZhRYdPMjtZfB9Bybx4ji37PpG77ZhhKbx4ji37PpG77ZhhKbx4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依赖范围的作用

  Maven有编译、测试、运行classpath,依赖范围用于控制依赖与三种classpath的关系。

  • 传递性依赖

a、项目A依赖于B,B依赖于C,则C是A的传递性依赖。Maven会将必要的间接依赖以传递式依赖的形式引入到项目。

b、确定传递性依赖范围

  项目A依赖于B,B依赖于C,则B是A的第一直接依赖,C是B的第二直接依赖,C是A的传递性依赖。第一和第二直接依赖的范围决定了传递性依赖的范围,如下所示,左边为第一直接依赖范围,上面为第二直接依赖范围,中间为传递性依赖范围:

  • 依赖调解

  当项目多个直接依赖在其自己的依赖路径中分别依赖了同一个其它依赖,那么该引入哪一个路径上的依赖呢?

规则:不同路径长度,路径最短优先;相同路径长度,第一申明优先

  • 可选依赖

  假设A依赖于B,B依赖于C(可选),D(可选)(在B项目中的pom.xml文件依赖C和D,申明<dependency>中均添加<optional>true</optional>)。可选依赖不具备传递性,因此A项目中不能引入C或D的依赖,如果需要使用C或D需要在A项目中直接依赖C或D

  • 排除依赖

    传递性依赖会隐式的引入很多依赖,极大简化了项目依赖的管理。但在以下情形需要使用<exclusions>排除依赖:

a、A依赖B,B依赖C,C(快照版本)不稳定可能会影响项目A。此时需要排除C而引入C的稳定版本。

b、可能由于版权原因,C(稳定版本)不在中央仓库,而D项目是一个可替代的实现。此时需要排除C而引入D

maven-坐标与依赖的更多相关文章

  1. 03 Maven 坐标与依赖

    Maven 坐标与依赖 Maven 的一大功能是管理项目依赖.为了能自动化地解析任何一个 Java 构件, Maven 就必须将它们唯一标识,这就依赖管理的底层基础 一一 坐标.本章将详细分析 Mav ...

  2. 4.Maven概念模型,maven的生命周期,Maven坐标,依赖管理(依赖范围,依赖声明),仓库管理,私服概念

     1 maven概念模型 2 maven的生命周期,项目构建过程 watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdG90b3R1enVvcXVhbg== ...

  3. 3.Maven坐标和依赖

    1.1 何为Maven坐标 正如之前所说的,Maven的一大功能就是管理项目依赖.为了能自动化地解析任何一个Java构件,Maven就必须将它们唯一标识,这就依赖管理的底层基础——坐标. 1.2 坐标 ...

  4. maven坐标及依赖范围的学习(1)

    首先,我们先了解什么是maven的坐标(重中之重): 在这里我们可以看到那三个红色的行,基本是pom.xml中出现的最多的配置     例如这个配置:这里我们可以看到我们这个项目的pom文件中,他对名 ...

  5. 【Maven】---坐标与依赖

    Maven坐标与依赖 最近想深度学习下maven,找到一本书叫<Maven实战>,这本书讲的确实很好,唯一遗憾的是当时maven教学版本是3.0.0的,而目前已经到了3.5.4了,版本存在 ...

  6. Maven学习笔记—坐标和依赖

    Maven的坐标和依赖 1 Maven坐标 1.1 什么是Maven坐标 Maven坐标:世界上任何一组构件都可以使用Maven坐标来唯一标识,Maven坐标的元素包括groupId.artifact ...

  7. Maven学习(二) -- 坐标和依赖

    标签(空格分隔): 学习笔记 坐标 实际就像在几何中,我们用一对坐标(x, y)来表示坐标系中唯一的点:或者我们可以用(经度,纬度)来表示地球上的某一个位置,在Maven的世界中,有坐标来唯一的表示项 ...

  8. Maven之——坐标和依赖(上)

    Maven之--坐标和依赖(上) 1.    Maven坐标概念 Maven通过构件的坐标来在Maven仓库中定位到详细的构件.Maven的坐标元素包含groupId.artifactId.versi ...

  9. Maven学习笔记2(坐标和依赖)

    1.坐标 Maven坐标为各个构件建立了秩序,任何一个构件都必须明确自己的坐标,一个maven坐标是由一些元素确定的 <groupId>com.alivn.account</grou ...

  10. 《Maven实战》第5章 坐标和依赖

    5.1 Maven坐标——项目唯一标识 groupId(必须定义):定义Mavan项目隶属的实际项目,如SpringFramework,一个实际项目可包含多个Maven项目 artifactId(必须 ...

随机推荐

  1. android Viewpager取消预加载及Fragment方法的学习

    1.在使用ViewPager嵌套Fragment的时候,由于VIewPager的几个Adapter的设置来说,都会有一定的预加载.通过设置setOffscreenPageLimit(int numbe ...

  2. gitlab 邮件服务器配置

    一.修改 /etc/gitlab/gitlab.rb 文件,添加邮件服务器信息 SMTP settings 例如163 邮件服务器 external_url 'http://你的IP地址或域名' ## ...

  3. jquery在IE8上使用find的问题

    有一个字符串,其中是一个XML文件的内容,但是使用find方法老是不正确(IE8,其他浏览器如Chrome.Firefox),代码如下: var xml="<ServiceResult ...

  4. 数据结构与算法分析java——栈和队列

    1. 栈 1.1 分类 顺序栈:顺序线性表实现 链式栈:单向链表存储堆栈 1.2栈的应用 1)数制转换 import java.util.Scanner; import java.util.Stack ...

  5. 一个SAP开发人员的2017总结

    今年的生活如此丰富多彩,不写一点什么怎么对得起这过去的一年? 就当记流水账,若干年之后回来看一定很有意思. 1月 有幸成为SAP Community上2位来自China的SAP mentor之一: 3 ...

  6. QT隐含共享类 QSharedData QSharedDataPointer

    版权声明:本文为博主原创文章,未经博主同意不得转载. https://blog.csdn.net/davidsu33/article/details/28857391 QT中非常多类都实现了隐含共享比 ...

  7. POJ 2942 圆桌骑士

    之前做过这个题目,现在回想起来,又有新的柑橘. 求必须出去的骑士人数. 每一个双连通分量,如果是一个奇圈,那么一定是二分图染色失败. 依次遍历每个双连通分量,但是,对于邻接表中,有一些点不是双连通分量 ...

  8. HDU 2048 错排

    错排递推公式: d(n) = (n-1)*(d[n-1]+d[n-2]): 证明:将第n个元素放到第k处,第k处的元素如果放到第n处,就是d(n-2),否则,先假设放到第n处,然后错排,就是d(n-1 ...

  9. Idea 配置 Database 组件的MySql数据库连接

    1.选择MySql

  10. 关于A*估价函数的总结

    估价函数的优劣决定一个A*算法的好坏 360百科上是这样说的: (https://baike.so.com/doc/6223470-6436780.html) 关于估价函数h(n)与实际距离d(n)的 ...