Quantcast

zip artifacts = resolving with maven

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

zip artifacts = resolving with maven

vano.mashey
Hi, guys,

we have multiple zip artifacts. When we are trying to resolve them with maven Artifactory cannot find them. For some reason, it looks for pom file first and cannot find it. We do not really see it as a requirement that every artifact should have a pom file. Do you guys know how this can be resolved or what do we need to change then?

Regards,
Ivan
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: zip artifacts = resolving with maven

itamarb
Hi Vano,

This is not really an Artifactory limitation, but actually Maven is expecting to find a .pom file in order to resolve dependencies.
If you are storing .zip files, you can specify '<type>zip</type>' in your dependency declaration to tell maven that the artifact you wish to resolve is a zip file and not a jar file, but the repository you are resolving from in Artifactory must still contain a Maven descriptor file (.pom) in the specified path.

Regards,
Itamar
Loading...