Maven 导入依赖 Jetbrains 暴露

Maven import dependency Jetbrains Exposed

在 Jetbrains 的 Exposed,一个 Kotlin SQL 框架的 github 页面上,有一个 link 页面,您可以在其中获取该库的 maven 依赖项(https://bintray.com/kotlin/exposed/exposed/view#). The same dependecy can also be found on MVNRepository (https://mvnrepository.com/artifact/org.jetbrains.exposed/exposed/0.7.6).

我正在使用 maven 3.3.9 和 Intellij 2016.3.4,但 maven 无法解决此依赖关系。我检查了 ~/.m2/ 目录,它似乎已被下载(存在一个 jar)。查看存储库后,我发现没有 pom.xml 并且他们使用 Gradle.

是否仍然可以使用 maven 导入此依赖项?

它在 mvnrepository 中列出,但工件本身位于 Kotlin Exposed 存储库中。您必须将 link 添加到您的 POM 的 Exposed 存储库,以便 Maven 找到它。

<repositories>
    <repository>
        <id>exposed</id>
        <name>exposed</name>
        <url>https://dl.bintray.com/kotlin/exposed</url>
    </repository>
</repositories>