Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.3.0
-
None
-
None
Description
To utilize nexus proxy to cache maven artifacts,
1. docker run -d -p 8081:8081 --name nexus sonatype/nexus:oss
2. ./gradlew configure-nexus
3. ./gradlew XXX-pkg # to build XXX package with nexus cache
However, configure-nexus failed silently:
$ curl -X POST -d @/tmp/temp6599511731001671196.tmp --header "Content-Type: application/json" -u admin:admin123 http://localhost:8081/service/local/repositories <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 404 Not Found</title> </head> <body> <h2>HTTP ERROR: 404</h2> <p>Problem accessing /service/local/repositories. Reason: <pre> Not Found</pre></p> <hr /><i><small>Powered by Jetty://</small></i> </body> </html>