2016-03-29 98 views
2

我有我的Maven倉庫與位於有https://cloudbuild.myompany.com/nexus/content/repositories/test_kirill/com/myompany/myompany-core/2.0.0/如何添加自定義Maven倉庫到搖籃

順便說一句我的AAR文件,它是如此,當我登錄,我應該使用的憑據的私人倉庫。

當我試圖將這添加到我的依賴gradle給我錯誤Failed to resolve

apply plugin: 'com.android.application' 

repositories { 
    mavenCentral() 


    maven { 
     credentials { 
      username 'admin' 
      password '*******' 
     } 
     url 'https://cloudbuild.myompany.com/nexus/content/repositories/test_kirill/' 
    } 
} 

android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.2" 

    defaultConfig { 
     applicationId "ko.com.myapplication" 
     minSdkVersion 8 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:23.2.1' 
    compile 'com.android.support:design:23.2.1' 
    compile group: 'com.myompany', name: 'myompany-core', version: '2.0.0' 
} 

也有是從2.2.0的文件夾

<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> 
<groupId>com.myompany</groupId> 
<artifactId>myompany-core</artifactId> 
<version>2.0.0</version> 
<packaging>gradle</packaging> 
<description>POM was created by Sonatype Nexus</description> 
</project> 
+0

回購中的pom文件的實際http路徑是什麼? – RaGe

回答