У меня есть 3 библиотеки, развернутые в Artifactory с их POM, включая зависимости. Однако для одной из библиотек Gradle не может обнаружить свои зависимости, несмотря на правильность и загрузку POM.
Я не вижу различий между его POM и POM двух других библиотек.
Artifact A full POM (обнаружены зависимости)
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.company</groupId>
<artifactId>ArtifactA</artifactId>
<version>3.8.37478-SNAPSHOT</version>
<packaging>pom</packaging>
<description>Release - 3.8.37478.0-task/37478-3.0.19_CC_322_ga58965c8-a58965c8-20200115T1705701</description>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-android-extensions-runtime</artifactId>
<version>1.3.50</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>1.3.50</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
<version>1.3.50</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-android</artifactId>
<version>1.3.0-RC</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>3.10.0</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp-urlconnection</artifactId>
<version>3.10.0</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>logging-interceptor</artifactId>
<version>3.10.0</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>com.squareup.retrofit2</groupId>
<artifactId>retrofit</artifactId>
<version>2.6.2</version>
</dependency>
<dependency>
<groupId>io.reactivex.rxjava2</groupId>
<artifactId>rxjava</artifactId>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>io.reactivex.rxjava2</groupId>
<artifactId>rxandroid</artifactId>
<version>2.0.1</version>
<exclusions>
<exclusion>
<groupId/>
<artifactId>rxjava</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.7</version>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client</artifactId>
<version>1.23.0</version>
<exclusions>
<exclusion>
<groupId/>
<artifactId>junit</artifactId>
</exclusion>
<exclusion>
<groupId/>
<artifactId>xpp3</artifactId>
</exclusion>
<exclusion>
<groupId/>
<artifactId>android</artifactId>
</exclusion>
<exclusion>
<groupId/>
<artifactId>httpclient</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-android</artifactId>
<version>1.23.0</version>
<exclusions>
<exclusion>
<groupId/>
<artifactId>junit</artifactId>
</exclusion>
<exclusion>
<groupId/>
<artifactId>xpp3</artifactId>
</exclusion>
<exclusion>
<groupId/>
<artifactId>android</artifactId>
</exclusion>
<exclusion>
<groupId/>
<artifactId>httpclient</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-jackson2</artifactId>
<version>1.23.0</version>
<exclusions>
<exclusion>
<groupId/>
<artifactId>junit</artifactId>
</exclusion>
<exclusion>
<groupId/>
<artifactId>xpp3</artifactId>
</exclusion>
<exclusion>
<groupId/>
<artifactId>android</artifactId>
</exclusion>
<exclusion>
<groupId/>
<artifactId>httpclient</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.9.6</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-kotlin</artifactId>
<version>2.9.6</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>1.9.13</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice</artifactId>
<version>1.4.14</version>
<exclusions>
<exclusion>
<groupId/>
<artifactId>commons-io</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-cache</artifactId>
<version>1.4.14</version>
<exclusions>
<exclusion>
<groupId/>
<artifactId>commons-io</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-okhttp</artifactId>
<version>1.4.14</version>
<exclusions>
<exclusion>
<groupId/>
<artifactId>okhttp-urlconnection</artifactId>
</exclusion>
<exclusion>
<groupId/>
<artifactId>okhttp</artifactId>
</exclusion>
<exclusion>
<groupId/>
<artifactId>commons-io</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.octo.android.robospice</groupId>
<artifactId>robospice-google-http-client</artifactId>
<version>1.4.14</version>
<exclusions>
<exclusion>
<groupId/>
<artifactId>commons-io</artifactId>
</exclusion>
<exclusion>
<groupId/>
<artifactId>httpclient</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.arrow-kt</groupId>
<artifactId>arrow-core-data</artifactId>
<version>0.9.0</version>
</dependency>
<dependency>
<groupId>io.arrow-kt</groupId>
<artifactId>arrow-effects-data</artifactId>
<version>0.9.0</version>
</dependency>
<dependency>
<groupId>org.koin</groupId>
<artifactId>koin-core</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>org.koin</groupId>
<artifactId>koin-android</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>com.squareup.retrofit2</groupId>
<artifactId>converter-jackson</artifactId>
<version>2.6.2</version>
</dependency>
<dependency>
<groupId>com.auth0.android</groupId>
<artifactId>jwtdecode</artifactId>
<version>1.4.0</version>
</dependency>
</dependencies>
</project>
Artifact B full POM (зависимости не обнаружены)
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.company</groupId>
<artifactId>ArtifactB</artifactId>
<version>1.1.37478-SNAPSHOT</version>
<packaging>pom</packaging>
<description>Release - 1.1.37478.0-task/37478-V1.0.23_8_gd77bd0e-d77bd0e-20200116T0933271</description>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
<version>1.3.41</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
<version>1.3.41</version>
</dependency>
<dependency>
<groupId>io.reactivex.rxjava2</groupId>
<artifactId>rxandroid</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-core</artifactId>
<version>1.3.0-RC</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-android</artifactId>
<version>1.3.0-RC</version>
</dependency>
<dependency>
<groupId>io.arrow-kt</groupId>
<artifactId>arrow-core-data</artifactId>
<version>0.9.0</version>
</dependency>
<dependency>
<groupId>io.arrow-kt</groupId>
<artifactId>arrow-effects-data</artifactId>
<version>0.9.0</version>
</dependency>
<dependency>
<groupId>org.koin</groupId>
<artifactId>koin-core</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>org.koin</groupId>
<artifactId>koin-android</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>com.connectsdk</groupId>
<artifactId>connect-sdk-android</artifactId>
<version>1.6.0</version>
<exclusions>
<exclusion>
<groupId>com.android.support</groupId>
<artifactId/>
</exclusion>
<exclusion>
<groupId/>
<artifactId>play-services-cast</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.reactivex.rxjava2</groupId>
<artifactId>rxkotlin</artifactId>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>appcompat-v7</artifactId>
<version>27.1.1</version>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>mediarouter-v7</artifactId>
<version>27.1.1</version>
</dependency>
<dependency>
<groupId>com.google.android.gms</groupId>
<artifactId>play-services-cast-framework</artifactId>
<version>16.2.0</version>
<exclusions>
<exclusion>
<groupId>com.android.support</groupId>
<artifactId/>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
Когда я запускаю grade :Project:dependencies
, он показывает зависимости для Артефакта A, но не для Артефакта B, и, конечно, он показывает ошибки компиляции для этих зависимостей Artifact B. Сама зависимость Артефакта B обнаружена правильно, это не только ее зависимости.
URL-адреса для Артефакта A:
http://artifactory.host.net/artifactory/misc/com/example/company/ArtifactA/3.8.37478-SNAPSHOT/ArtifactA-3.8.37478-SNAPSHOT-release.aar
http://artifactory.host.net/artifactory/misc/com/example/company/ArtifactA/3.8.37478-SNAPSHOT/ArtifactA-3.8.37478-SNAPSHOT.pom
URL-адреса для Артефакта B:
http://artifactory.host.net/artifactory/misc/com/example/company/ArtifactB/1.1.37478-SNAPSHOT/ArtifactB-1.1.37478-SNAPSHOT-release.aar
http://artifactory.host.net/artifactory/misc/com/example/company/ArtifactB/1.1.37478-SNAPSHOT/ArtifactB-1.1.37478-SNAPSHOT.pom
Я обновил зависимости, а также несколько раз вручную удалил их из кэша Gradle.
Есть идеи, в чем может быть проблема?