Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[not a bug] "Missing checksums" error when importing eclair in Intellij Idea #2991

Open
sstone opened this issue Jan 30, 2025 · 0 comments
Open

Comments

@sstone
Copy link
Member

sstone commented Jan 30, 2025

Importing/reloading eclair in Intellij Idea may fail with "missing checksum" errors such as:
Missing from summaryFile trusted checksum(s) [SHA-512] for artifact org.scala-lang:scala-library:pom:2.13.11

The root cause is that Idea does not understand ${session.rootDirectory} used in /.mvn/maven.config, which is a recent addition to maven (see https://youtrack.jetbrains.com/issue/IDEA-360778/.mvn-maven.config-isnt-used-when-correctly)

Workaround is to replace ${session.rootDirectory} with the full path to your eclair directory.
For example, change

-Daether.trustedChecksumsSource.summaryFile.basedir=${session.rootDirectory}/.mvn/checksums/

To:

-Daether.trustedChecksumsSource.summaryFile.basedir=/home/joe/projects/eclair/.mvn/checksums/

And re-import the project.

Strangely enough, once it has be done it seems that you can revert the change to /.mvn/maven.config and Idea will keep on working fine (?).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant