lib/java/artifact.rb in buildr-1.2.3 vs lib/java/artifact.rb in buildr-1.2.4
- old
+ new
@@ -267,9 +267,10 @@
# This method attempts to download the artifact from each repository in the order in
# which they are returned from #remote, until successful. It always downloads the POM first.
def download()
puts "Downloading #{to_spec}" if Rake.application.options.trace
remote = Buildr.repositories.remote
+ fail "No remote repositories defined!" if remote.empty?
remote.find do |repo_url|
repo_url = URI.parse(repo_url) unless URI === repo_url
repo_url.path += "/" unless repo_url.path[-1] == "/"
begin
path = group.gsub(".", "/") + "/#{id}/#{version}/#{File.basename(name)}"