'Maven Dependencies' container references an existing library

I am using SpringSource Tool Suite 2.3.0. I recently added the commons-compress dependency to pom.xml, as required, with the jackrabbit 2.0 dependency . Updating the maven dependency console shows: "The org.apache.commons: commons-compress: jar: 1.0: compile artifact is missing"

I checked the "Problems" view and found the following error:

The references to the Maven Dependencies containers carry the existing library C: \ Documents and Settings \ AElshereay.m2 \ repository \ org \ apache \ commons \ commons-compress \ 1.0 \ commons-compress-1.0.jar '.

also:

cvc-complex-type.2.4.c: The corresponding template is strict, but no declaration was found for the "config: simple" element.

I do not know what is the last! And if he has something to do, so as not to download the jar from the maven repository even there!

Please help me solve this problem?

Thanks in advance.

+3
source share
1 answer

I'm not 100% sure about the last error message, but the first two of them are definitely related: you declared a dependency on POM to update .classpathto point to it in your local repository, but the file cannot be found in it, and Eclipse / STS complains about this.

- POM:

<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-compress</artifactId>
    <version>1.0</version>
</dependency>

, :

1/23/10 5:11:10 AM CET: Downloading central : org/apache/commons/commons-compress/1.0/commons-compress-1.0.pom
1/23/10 5:11:10 AM CET: Downloaded [central] -> http://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.0/commons-compress-1.0.pom
1/23/10 5:11:10 AM CET: [WARN] *** CHECKSUM FAILED - Checksum failed on download: local = '325980a09dbbd0c108ece8e7733b462b00e6f2a8'; remote = 'commons-compress-1.0.pom:' - RETRYING
1/23/10 5:11:10 AM CET: Downloading central : org/apache/commons/commons-compress/1.0/commons-compress-1.0.pom
1/23/10 5:11:10 AM CET: Downloaded [central] -> http://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.0/commons-compress-1.0.pom
1/23/10 5:11:11 AM CET: [WARN] *** CHECKSUM FAILED - Checksum failed on download: local = '325980a09dbbd0c108ece8e7733b462b00e6f2a8'; remote = 'commons-compress-1.0.pom:' - IGNORING
1/23/10 5:11:12 AM CET: Downloading central : org/apache/commons/commons-compress/1.0/commons-compress-1.0.jar
1/23/10 5:11:15 AM CET: Downloaded [central] -> http://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.0/commons-compress-1.0.jar
1/23/10 5:11:16 AM CET: [WARN] *** CHECKSUM FAILED - Checksum failed on download: local = '995ae384a0b1e2c66269e6bc5198db8561fb45a2'; remote = 'commons-compress-1.0.jar:' - RETRYING
1/23/10 5:11:16 AM CET: Downloading central : org/apache/commons/commons-compress/1.0/commons-compress-1.0.jar
1/23/10 5:11:18 AM CET: Downloaded [central] -> http://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.0/commons-compress-1.0.jar
1/23/10 5:11:18 AM CET: [WARN] *** CHECKSUM FAILED - Checksum failed on download: local = '995ae384a0b1e2c66269e6bc5198db8561fb45a2'; remote = 'commons-compress-1.0.jar:' - IGNORING

.

, , checksumPolicy   fail. - settings.xml , m2eclipse (Windows > > Maven > ) :

 <checksumPolicy>fail</checksumPolicy>

- , commons-compress .

+2

Source: https://habr.com/ru/post/1729596/


All Articles