I have a project that is importing a POM just for its pinned dependency 
versions (my-custom-bom).

my-custom-bom does that for another POM, called another-bom. (I've redacted the 
specific names of things.)

The first set of dependencies are successfully pulled from the internal server, 
the.internal.repo/libs-release. However, once it gets to 'another-bom', it 
starts ignoring this custom repo and going straight to the public Maven Central 
(which obviously doesn't have it). What might be causing that?

Last successful, and first failing, logs:

[DEBUG] Resolving artifact the.package.name:my-custom-bom:pom:0.1.8 from 
[central (https://the.internal.repo/libs-release, default, releases)]
[DEBUG] Using transporter WagonTransporter with priority -1.0 for 
https://the.internal.repo/libs-release
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for 
https://the.internal.repo/libs-release
Downloading from central: 
https://the.internal.repo/libs-release/the/package/name/my-custom-bom/0.1.8/my-custom-bom-0.1.8.pom
Downloaded from central: 
https://the.internal.repo/libs-release/the/package/name/my-custom-bom/0.1.8/my-custom-bom-0.1.8.pom
 (2.1 kB at 1.6 kB/s)
[DEBUG] Writing tracking file 
/Users/dmkoenig/.m2/repository/the/package/name/my-custom-bom/0.1.8/_remote.repositories
[DEBUG] Writing tracking file 
/Users/dmkoenig/.m2/repository/the/package/name/my-custom-bom/0.1.8/my-custom-bom-0.1.8.pom.lastUpdated
[DEBUG] Resolving artifact another.package.name:another-bom:pom:1.1.53 from 
[central (https://repo.maven.apache.org/maven2, default, releases)]
[ERROR] Non-resolvable import POM: Could not find artifact 
another.package.name:another-bom:pom:1.1.53 in central 
(https://repo.maven.apache.org/maven2) @ the.package.name:my-custom-bom:0.1.8, 
/Users/dmkoenig/.m2/repository/the/package/name/another-bom/0.1.8/another-bom-0.1.8.pom,
 line 22, column 25

Settings.xml:
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0";
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 
http://maven.apache.org/xsd/settings-1.1.0.xsd";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <proxies>
    <!-- redacted; it can consistently reach the.internal.repo
  </proxies>
  <profiles>
    <profile>
      <id>release</id>
      <repositories>
        <repository>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <id>central</id>
          <name>libs-release</name>
          <url>https://the.internal.repo/libs-release</url>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <id>central</id>
          <name>plugins-release</name>
          <url>https://the.internal.repo/plugins-release</url>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>release</activeProfile>
  </activeProfiles>
</settings>


Reply via email to