Why can't I mix file and http(s) urls for a single Ivy repository?


(Andreas Nyberg) #1

A repository was missing Ivy files but had artifacts in standard locations, so I wanted to provide the Ivy files myself local to my project, like this:

repositories

ivy {

name ‘local-ivyrep’

ivyPattern ‘ivyrep/[organisation]/[module]/[revision]/ivy-[revision].xml’

ivyPattern ‘ivyrep/[organisation]/[module]/default/ivy.xml’

artifactPattern ‘http:/remoterepo.com/[organisation]/[module]/[revision]/[artifact].[ext]’

}

}

…but got told off: “You cannot mix file and http(s) urls for a single Ivy repository. Please declare 2 separate repositories.”

Are not ivyPattern and artifactPattern intended to be independent of any root url of a repository?