首页 > 代码库 > 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清楚不同版本的重复依赖