首页 > 代码库 > maven清楚不同版本的重复依赖
maven清楚不同版本的重复依赖
pom文件加入:
1 <dependencyManagement> 2 <dependencies> 3 <dependency> 4 <groupId>org.springframework</groupId> 5 <artifactId>spring-framework-bom</artifactId> 6 <version>4.2.2.RELEASE</version> 7 <type>pom</type> 8 <scope>import</scope> 9 </dependency>10 <dependency>11 <groupId>com.fasterxml.jackson.core</groupId>12 <artifactId>jackson-annotations</artifactId>13 <version>2.7.0-rc3</version>14 </dependency>15 <dependency>16 <groupId>com.fasterxml.jackson.core</groupId>17 <artifactId>jackson-core</artifactId>18 <version>2.7.0-rc3</version>19 </dependency>20 <dependency>21 <groupId>com.fasterxml.jackson.core</groupId>22 <artifactId>jackson-databind</artifactId>23 <version>2.7.0-rc3</version>24 </dependency>25 </dependencies>26 </dependencyManagement>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>4.2.2.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.7.0-rc3</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.7.0-rc3</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.7.0-rc3</version>
</dependency>
</dependencies>
</dependencyManagement>
maven清楚不同版本的重复依赖
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。