Ozsie / detekt-maven-plugin

Maven wrapper for detekt cli
Apache License 2.0
56 stars 18 forks source link

Artifact kotlinx-html-jvm:0.7.1 could not be resolved #61

Closed simonedavico closed 4 years ago

simonedavico commented 4 years ago

It looks like the 0.7.1 version of kotlinx-html-jvm has disappeared from the Maven Central repository.

This is what I get when I run the detekt plugin:

❯ mvn -U detekt:check -Ddetekt.config=detekt-config.yml
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< my.project >-----------------------
[INFO] Building myproject 0.0.1
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- detekt-maven-plugin:1.9.1:check (default-cli) @ myproject ---
Downloading from central: https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-html-jvm/0.7.1/kotlinx-html-jvm-0.7.1.pom
Downloading from jcenter: https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-html-jvm/0.7.1/kotlinx-html-jvm-0.7.1.pom
[WARNING] The POM for org.jetbrains.kotlinx:kotlinx-html-jvm:jar:0.7.1 is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-html-jvm/0.7.1/kotlinx-html-jvm-0.7.1.jar
Downloading from jcenter: https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-html-jvm/0.7.1/kotlinx-html-jvm-0.7.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.484 s
[INFO] Finished at: 2020-07-17T16:24:27+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.ozsie:detekt-maven-plugin:1.9.1:check (default-cli) on project myproject: Execution default-cli of goal com.github.ozsie:detekt-maven-plugin:1.9.1:check failed: Plugin com.github.ozsie:detekt-maven-plugin:1.9.1 or one of its dependencies could not be resolved: Could not find artifact org.jetbrains.kotlinx:kotlinx-html-jvm:jar:0.7.1 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
Ozsie commented 4 years ago

Try updating to version 1.10.0 of the plugin, I don't recognize the error but testing the latest version might help.

simonedavico commented 4 years ago

I am already using the latest version :) It is worth noting that this started happening suddenly last Friday, I fear that the dependency might have been moved to some other repository. Are you able to reproduce the issue?

Ozsie commented 4 years ago

I can't reproduce it, though it does indeed seem to be missing from Maven Central. I'm not sure I can do anything from my end, I inherit the dependency from detekt, they use it for the html report, I would check with detekt directly.

simonedavico commented 4 years ago

Good point, I will raise an issue in detekt repository.

arturbosch commented 4 years ago

The dependency has been re-linked to jcenter again: https://github.com/detekt/detekt/issues/2882#event-3560718071.

simonedavico commented 4 years ago

I can confirm, I was able to run the check successfully. Closing, thank you!