Search code examples
mavenartifactorymaven-metadata

Artifactory maven 3 unable to find a snapshot file


I am having problems getting artifactory to suppy a jar file to a maven 3 build process

I have deploy the jar file gwt-openlayers-server-1.0-SNAPSHOT.jar to libs-snapshot-local

I can find this jar file by using the general lookup in the Artifacts tab, it shows up as

<dependency>
    <groupId>org.gwtopenmaps.openlayers</groupId>
    <artifactId>gwt-openlayers-server</artifactId>
    <version>1.0-20130320.151820-1</version>
</dependency>

So I known artifactory has it.

When I attempt to do a build using a pom with the following section in it

<dependency>
  <groupId>org.gwtopenmaps.openlayers</groupId>
  <artifactId>gwt-openlayers-server</artifactId>
  <version>1.0-SNAPSHOT</version>

I get a build error with a diagnostic about being unable to find gwt-openlater-server, see listing.

I don't understand why I am having this problem, artifactory has the file!

I am using mvn -U compile

Any suggestions


Solution

  • Check if you have maven-metadata.xml corruption, or perhaps your snapshot info is empty. It shouldn't be.