maven error collection

Collect the maven problems you have encountered.
Question 1: Scanning errors (1): 1 Could not read pom.xml
When importing the Maven project into eclipse, the above error occurs, because the pom.xml file has content that cannot be parsed. The solution:
Delete the content in pom.xml, then import it, wait until the import is successful, and then copy the original content.


问题二: Failure to transfer org.apache.maven:maven-archiver:pom:2.4.2 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-archiver:pom:2.4.2 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/2.4.2/maven-archiver-2.4.2.pom pom.xml /java line 1 Maven Configuration Problem
Maven更新时报错的解决办法,解决办法:
In the corresponding directory of M2, it is found that maven-archiver is not downloaded, only the lastupdate file, delete it;
Re-project -> Maven - Update Dependencies

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326778355&siteId=291194637