This content has been marked as final. Show 6 replies
Are you saying the Maven repository doesn't work at all, or that the directory is not browsable, i.e., it works except it cannot be browsed, which I understand is a fatal flaw for some?
We have tried unsuccessfully to get the browsing issue resolved with IT. This isn't something we're able to fix ourselves, but feel free to blame me if you'd like. Even so I'm hesitant to just take down our Maven repository when people (who don't have the browsing issue) may be relying on it.
Are you saying the Maven repository doesn't work at all, or that the directory is not browsable, i.e., it works except it cannot be browsed, which I understand is a fatal flaw for some?I tried to access with the browser, that did not work for me.
Then I tried cURL (curl), which is not a browser, and it did not work either. I also tried curl with header "accept: text/plain", same result.
From there I concluded that neither Ant nor Maven will work. True I have not tried them, cause .. what could be the difference between a HTTP call made by Maven and one from curl?
It got confused by HTTP 404 returned browsing http://download.oracle.com/maven
$ curl -v http://download.oracle.com/maven About to connect() to download.oracle.com port 80 (#0) Trying 188.8.131.52... connected Connected to download.oracle.com (184.108.40.206) port 80 (#0) GET /maven HTTP/1.1 User-Agent: curl/7.24.0 (x86_64-apple-darwin10.8.0) libcurl/7.24.0 OpenSSL/1.0.1 zlib/1.2.6 libidn/1.22 Host: download.oracle.com Accept: */* HTTP/1.1 404 Not Found
The trick if you're using Nexus to proxy the Oracle Maven repository is to configure it thus :
- Download Remote Indexes = false
- Auto Blocking Enabled = false
This stops the 404 errors automatically disabling your proxy repository, and ensures that when Maven asks for a file, it always tries to fetch it from the remote repository if it's not cached locally.