You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ch.epfl.scala:maven-bloop_2.13:1.4.11:bloopInstall got fail.
I think, maven-bloop doesn't search for a 2-depth dependency with 'system scope'.
It only search from remote repository not local file system(${java.home}/../lib/tools.jar (only when dependency of dependency)
2022.01.02 16:38:25 INFO Downloading from central: https://repo.maven.apache.org/maven2/jdk/tools/jdk.tools/1.8/jdk.tools-1.8.jar
2022.01.02 16:38:27 INFO [ERROR] FAILURE jdk.tools:jdk.tools:jar:1.8:system
...
2022.01.02 16:38:27 INFO [ERROR] Failed to execute goal ch.epfl.scala:maven-bloop_2.13:1.4.11:bloopInstall (default-cli) on project json4s: Execution default-cli of goal ch.epfl.scala:maven-bloop_2.13:1.4.11:bloopInstall failed: Could not resolve jdk.tools:jdk.tools:jar:1.8:system -> [Help 1]
Thanks for reporting! The issue might be connected to the fact that we try to resolve artifact within the system scope, while we should not have just use the provided path.
Thanks for reporting! The issue might be connected to the fact that we try to resolve artifact within the system scope, while we should not have just use the provided path.
I'm curious about we should not have just use the provided path you said.
Which case we should not have just use the path?
So, using 1-depth dependency will not guarantee working?
Hello.
I found that maven-bloop can't resolve the dependency with "system scope" in specific case.
First, I add dependency like below within my project's pom.xml and it works fine.
But, when I add the "hadoop-annotations" as a dependency like below (without dependency jdk.tools 1.8 in pom.xml)
ch.epfl.scala:maven-bloop_2.13:1.4.11:bloopInstall got fail.
I think, maven-bloop doesn't search for a 2-depth dependency with 'system scope'.
Doesn't it care of "scope" property of maven dependency?
https://github.com/scalacenter/bloop/blob/75fb344129bc92d3fff76f57429660e7014322c2/integrations/maven-bloop/src/main/scala/bloop/integrations/maven/MojoImplementation.scala#L83-L107
I have two solutions for not fixing it. but I don't like....
Please check this!
The text was updated successfully, but these errors were encountered: