【问题标题】:Error resolving jhipster dependency in kotlin enabled project在启用 kotlin 的项目中解析 jhipster 依赖项时出错
【发布时间】:2018-11-17 19:37:11
【问题描述】:

我使用 jhipster 的 Spring Boot 项目在解决其依赖项之一时遇到问题:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not resolve io.github.jhipster:jhipster-framework:2.0.6.
     Required by:
         project :
      > Could not resolve io.github.jhipster:jhipster-framework:2.0.6.
         > Could not get resource 'https://jcenter.bintray.com/io/github/jhipster/jhipster-framework/2.0.6/jhipster-framework-2.0.6.pom'.
            > Could not GET 'https://jcenter.bintray.com/io/github/jhipster/jhipster-framework/2.0.6/jhipster-framework-2.0.6.pom'. Received status code 409 from server: 

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 9s
3 actionable tasks: 3 executed
Could not GET 'https://jcenter.bintray.com/io/github/jhipster/jhipster-framework/2.0.6/jhipster-framework-2.0.6.pom'. Received status code 409 from server: 
Enable Gradle 'offline mode' and sync project
3:21:15 PM: Task execution finished 'assemble'.

由于某种原因,当它无法解析 jhipster 库时,它要求我离线编译。有什么想法吗?

我将我的项目配置为compile with kotlin,但我认为这不是这里的问题。

【问题讨论】:

    标签: spring-boot gradle kotlin


    【解决方案1】:

    如果你去jcenter搜索jhipster-framework,https://bintray.com/bintray/jcenter/io.github.jhipster%3Ajhipster-framework,没有2.0.6版本。最新版本是 2.0.8。

    【讨论】:

    • 我更改了版本号,现在它已修复!当我在 jhipster 中生成项目时,一定发生了一些奇怪的事情。
    猜你喜欢
    • 2014-10-29
    • 2020-12-08
    • 2021-09-29
    • 1970-01-01
    • 2021-04-11
    • 2012-01-26
    • 1970-01-01
    • 2016-09-14
    • 1970-01-01
    相关资源
    最近更新 更多