标签:pom 版本 xmlns pre maven sts work org 4.0
症状:
Missing artifact org.springframework:spring-core:jar:5.0.0.RC3
原因:
在引入之前没有设置spring版本号 和spring url地址
解决方案:
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 3 <modelVersion>4.0.0</modelVersion> 4 <groupId>com.test</groupId> 5 <artifactId>test</artifactId> 6 <version>0.0.1-SNAPSHOT</version> 7 <packaging>war</packaging> 8 <url>http://maven.apache.org</url> 9 <properties> 10 <spring.version>4.3.3.RELEASE</spring.version> 11 </properties> 12 <dependencies> 13 <!-- spring --> 14 <dependency> 15 <groupId>org.springframework</groupId> 16 <artifactId>spring-core</artifactId> 17 <version>${spring.version}</version> 18 </dependency> 19 20 21 </dependencies>
标签:pom 版本 xmlns pre maven sts work org 4.0
原文地址:http://www.cnblogs.com/codehello/p/7277827.html