pom报错处理
报错:Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer
或
Cannot access defaults field of Properties
解决:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.1</version>
</plugin>
报错:cvc-elt.1.a: Cannot find the declaration of element 'project'.
解决: xsi:schemaLocation="http 改为https
报错 :Multiple markers at this line - Content is not allowed in prolog. - Cannot access defaults field of Properties
解决: 从一个正常的xml文件中,把头信息复制到出问题的xml中
<?xml version="1.0" encoding="UTF-8"?>