jdeploy icon indicating copy to clipboard operation
jdeploy copied to clipboard

Cannot build with maven 3.8.4 as local repository does not have checksums.

Open ravn opened this issue 3 years ago • 3 comments

Trying to run build-and-test.sh I get many, many errors similar to:

Downloading from my-local-repo: file:///Users/ravn/git/jdeploy/cli/../maven-repository/ca/weblite/jdeploy/image4j/0.7.2/image4j-0.7.2.pom
[WARNING] Could not validate integrity of download from file:///Users/ravn/git/jdeploy/cli/../maven-repository/ca/weblite/jdeploy/image4j/0.7.2/image4j-0.7.2.pom
org.eclipse.aether.transfer.ChecksumFailureException: Checksum validation failed, no checksums available
    at org.eclipse.aether.internal.impl.AbstractChecksumPolicy.onNoMoreChecksums (AbstractChecksumPolicy.java:64)

I understand why there is a local cache of artifacts (I did similar work some years back) but this might need to be revisited. Do these have any special changes or are you just providing copies of artifacts not present in Maven Central?

ravn avatar Jul 13 '22 12:07 ravn

That is a warning not an error. If you have an error preventing build, then it is elsewhere in the readout.

shannah avatar Jul 13 '22 22:07 shannah

You are right. Those are just warnings, which can be disabled with mvn -c.

I am still curious about reasoning being the maven-repository files, though.

ravn avatar Jul 14 '22 13:07 ravn

There are some artifacts that need to be added to the classpath but aren't in Maven, and this is one way to add the dependencies.

shannah avatar Jul 14 '22 13:07 shannah