Mauli
Mauli

Reputation: 17203

"Missing artifact" errors with company repository

I setup a company maven repository using artifactory. I deployed a project of us into the repository. If I now specify a dependency to that artifact, it doesn't get retrieved. Which it should, because I declared this in my settings.xml:

<mirrors>
  <mirror>
    <id>company-internal</id>
    <name>company repository</name>
    <url>http://company.repository:8080/artifactory/repo/</url>
    <mirrorOf>*</mirrorOf>
  </mirror>
</mirrors>

This works for all 3rdparty dependencies. The artifact is definitely in the reposity, manually I can download the artifact just fine. Why is maven not able to download it? Is it more likely to be a problem with maven (or the configuration there), or is there a bug in artifactory? Is there something which is handled differently in case of SNAPSHOTs?

Upvotes: 2

Views: 2272

Answers (2)

Kjetil &#216;degaard
Kjetil &#216;degaard

Reputation: 681

You'll have to add your company repository under the "repositories" element.

The "mirrors" element is for specifying local mirrors for repositories like "central".

Upvotes: 4

Michael Pralow
Michael Pralow

Reputation: 6630

it should work, can you give more informations ?

  • dependency snippet you use to get the artifact
  • pom.xml of the artifact in the repository

Upvotes: 0

Related Questions