I am new to maven, I have installed apache-maven-3.6.1 using it via visual studio code First creating workspace was throwing error due to maven was behind proxy I updated setting.xml in maven, added proxy and workscpace was created by vsc
Its a fresh workspace, but the pom.xml is throwing error in first project tag as mentioned in title
I searched and added the same settings.xml file in C:\Users\Myacc.m2 folder and checked
I deleted the m2 folder and checked
I executed mvn clean package in project directory
none of it worked
http://maven.apache.org/xsd/maven-4.0.0.xsd">
this the xml tag which is throwing error
From browser I am able to access http://maven.apache.org/xsd/maven-4.0.0.xsd
I could not find .lsp4xml\cache\http\maven.apache.org , thought of keeping the xsd manually
For the same problem, I found this solution. changed http to https in below line in pom file. worked in eclipse. Not sure why.
<project xmlns="https://maven.apache.org...
For what it's worth I see same error (firewall related?) which I think is due to the XML parser LSP4XML - rather than a Maven issue. The useSystemProxies suggestion here worked for me: https://github.com/redhat-developer/vscode-xml/issues/134
If anyone is still following for the solution.
Issue: Admin Rights
Solution: Run the eclipse in admin mode in Windows and issue will be resolved.
Changing https to http made it work Note the difference in xsi:schemLocation
Incorrect:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Correct:
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With