Java 将Spring3迁移到Maven build并在eclipse中获得错误,但运行良好

Java 将Spring3迁移到Maven build并在eclipse中获得错误,但运行良好,java,eclipse,spring,maven,spring-mvc,Java,Eclipse,Spring,Maven,Spring Mvc,我将我的Spring3项目迁移到Maven build,并在eclipse中出现错误,但运行良好。有人能告诉我如何修复这个问题吗 Description Resource Path Location Type cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'http'. my-security.xml /SchoolV

我将我的Spring3项目迁移到Maven build,并在eclipse中出现错误,但运行良好。有人能告诉我如何修复这个问题吗

Description Resource    Path    Location    Type
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'http'.    my-security.xml /SchoolVisit/target/SchoolVisit/WEB-INF/spring  line 13 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'authentication-manager'.  my-security.xml /SchoolVisit/target/SchoolVisit/WEB-INF/spring  line 21 XML Problem
schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/security/spring-security-3.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.    my-security.xml /SchoolVisit/target/SchoolVisit/WEB-INF/spring  line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'global-method-security'.  my-security.xml /SchoolVisit/target/SchoolVisit/WEB-INF/spring  line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'http'.    my-security.xml /SchoolVisit/src/main/webapp/WEB-INF/spring line 13 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'global-method-security'.  my-security.xml /SchoolVisit/src/main/webapp/WEB-INF/spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'authentication-manager'.  my-security.xml /SchoolVisit/src/main/webapp/WEB-INF/spring line 21 XML Problem
描述资源路径位置类型
cvc复杂类型.2.4.c:匹配的通配符是严格的,但找不到元素“http”的声明。my-security.xml/SchoolVisit/target/SchoolVisit/WEB-INF/spring line 13 xml问题
cvc复杂类型.2.4.c:匹配的通配符是严格的,但找不到元素“authentication manager”的声明。my-security.xml/SchoolVisit/target/SchoolVisit/WEB-INF/SpringLine21XML问题
架构\u引用。4:未能读取架构文档'http://www.springframework.org/schema/security/spring-security-3.1.xsd,因为1)找不到该文档;2) 文件无法读取;3) 文档的根元素不是。my-security.xml/SchoolVisit/target/SchoolVisit/WEB-INF/spring line 11 xml问题
cvc复杂类型.2.4.c:匹配的通配符是严格的,但找不到元素“全局方法安全性”的声明。my-security.xml/SchoolVisit/target/SchoolVisit/WEB-INF/spring line 11 xml问题
cvc复杂类型.2.4.c:匹配的通配符是严格的,但找不到元素“http”的声明。my-security.xml/SchoolVisit/src/main/webapp/WEB-INF/spring line 13 xml问题
cvc复杂类型.2.4.c:匹配的通配符是严格的,但找不到元素“全局方法安全性”的声明。my-security.xml/SchoolVisit/src/main/webapp/WEB-INF/spring line 11 xml问题
cvc复杂类型.2.4.c:匹配的通配符是严格的,但找不到元素“authentication manager”的声明。my-security.xml/SchoolVisit/src/main/webapp/WEB-INF/SpringLine21XML问题
my-my-serurity.xml:


这是我的pom.xml


4.0.0
org.uftwf.schoolvisit
学校参观
学校参观
战争
1.0.0-BUILD-SNAPSHOT
1.5
3.1.1.1发布
2.3.1.构建快照
3.1.1.1发布
1.5.10
4.1.1.最终版本
org.springframework
春季甲虫
${springframework版本}
org.springframework
春季方面
${springframework版本}
org.springframework
SpringWebMVC
${springframework版本}
公用记录
公用记录
org.springframework.webflow
弹簧面
${springwebflow版本}
org.springframework.security
spring安全内核
${springsecurity版本}
org.springframework.security
spring安全配置
${springsecurity版本}
org.springframework.security
spring安全网
${springsecurity版本}
org.springframework.security
spring安全ldap
${springsecurity版本}
org.springframework.security
春季安全
${springsecurity版本}
org.springframework.security
spring安全cas客户端
3.0.7.1发布
cas客户端核心
org.jasig.cas
javax.transaction
jta
1.1
javax.mail
邮件
1.4.5
cglib
cglib
2.2.2
mysql
mysql连接器java
5.1.21
c3p0
c3p0
0.9.1.2
org.apache.httpcomponents
httpcore
4.2.1
org.apache.httpcomponents
httpclient
4.2.1
公用记录
公用记录
org.aspectj
aspectjtools
1.6.2
jstl
jstl
1.2
org.slf4j
slf4j分机
${org.slf4j版本}
org.slf4j
slf4j-log4j12
${org.slf4j版本}
org.slf4j
slf4j api
${org.slf4j版本}
org.slf4j
jcl-over-slf4j
${org.slf4j版本}
log4j
log4j
1.2.16
javax.inject
javax.inject
1.
javax.servlet
servlet api
2.5
假如
javax.servlet.jsp
jsp api
2.1
假如
javax.servlet
jstl
1.2
com.sun.faces
JSFAPI
2.1.7
com.sun.faces
jsf impl
2.1.7
javax.validation
验证api
1.0.0.GA
org.hibernate
休眠实体管理器
${hibernate.version}
org.hibernate
休眠验证器
4.0.2
Eclipse IDE, menu bar
Select Window > Preferences
Select Java > Build Path > Classpath Variables
Click on the new button > defined a new M2_REPO variable and point it to your local Maven repository
Done.