Java开发pom文件报错cvc-elt.1.a: Cannot find the declaration of element ‘project’.
cvc-elt.1.a: Cannot find the declaration of element ‘project’.
项目POM.xml文件报错
cvc-elt.1.a: Cannot find the declaration of element 'project'.
因为现在都是https
请求了,但是自动生成的请求中很多还是http
,只需要全部改为https
即可
修改前的 pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" >
<modelVersion>4.0.0</modelVersion>
…
修改后的xml
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>