赞
踩
maven工程中的pom.xml报错:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'executable'. One of '{"http://maven.apache.org/POM/4.0.0":version, "http://
maven.apache.org/POM/4.0.0":extensions, "http://maven.apache.org/POM/4.0.0":executions, "http://maven.apache.org/POM/4.0.0":dependencies, "http://maven.apache.org/POM/4.0.0":goals, "http://maven.apache.org/POM/4.0.0":inherited, "http://maven.apache.org/POM/4.0.0":configuration}' is expected.
解决方法:修改pom.xml如下:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。