2017-03-24 38 views
1

下载我InteliJ 2017.1Bintray依赖不会InteliJ

创建了一个简单科特林项目,我想补充的依赖于这个库对于初学者: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并非如此。我错过了什么?

回答

0

您确定要pom而不是jar

导入你的依赖是这样的:

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