Bintray依赖不会在InteliJ下载

我在InteliJ 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库被下载了,我在外部库中看到它们。 不幸的是,这不是暴露的情况。 我错过了什么?

你定义你想pom不是jar

像这样导入你的依赖:

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