Skip to content

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

@sstone

Description

@sstone

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 (?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions