gpt4 book ai didi

maven - Bintray 依赖项不会在 IntelliJ 中下载

转载 作者:行者123 更新时间:2023-12-02 01:15:02 25 4
gpt4 key购买 nike

我在 IntelliJ 2017.1 中创建了一个简单的 kotlin 项目

我想为初学者添加对这个库的依赖:https://github.com/JetBrains/Exposed

我添加了 maven 框架,并编辑了 pom.xml,如下所示。为简单起见,我删除了 kotlin 配置条目。

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<repositories>

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

</repositories>

<dependencies>

<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed</artifactId>
<version>0.7.6</version>
<type>pom</type>
</dependency>

<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jre8</artifactId>
<version>${kotlin.version}</version>
</dependency>

</dependencies>

</project>

Kotlin 库已下载,我在外部库中看到它们。不幸的是,Exposed 并非如此。我错过了什么?

最佳答案

您定义了您想要 pom 而不是 jar

像这样导入你的依赖:

<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed</artifactId>
<version>0.7.6</version>
</dependency>

关于maven - Bintray 依赖项不会在 IntelliJ 中下载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43010977/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com