swagger-api / validator-badge

Validate your Swagger JSON/YAML today!
http://swagger.io
Apache License 2.0
210 stars 85 forks source link

Cannot download oss-parent-4.pom from sontatype.org #47

Closed cariadeccleston closed 9 years ago

cariadeccleston commented 9 years ago

Hi!

When I run:

mvn package jetty:run

...I get the following output:

[INFO] Scanning for projects...
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/sonatype/oss/oss-parent/5/oss-parent-5.pom

...where it hangs.

I tried just downloading "oss-parent-5.pom" directly with curl, but it fails with HTTP status 404 (but is actually "forbidden"):

404 - Retrieval of /org/sonatype/oss/oss-parent/5/oss-parent-5.pom from M2Repository(id=snapshots) is forbidden by repository policy SNAPSHOT.

I tried on separate networks too, and I get the same message.

So -- apologies for being new to maven -- is there any additional configuration I'm supposed to do, or is this repository just no longer available?

Thank you!

webron commented 9 years ago

The may be an issue with sonaype, not really with our configuration. Just tried it and it works as expected. Can you give it another try?

cariadeccleston commented 9 years ago

Mega apoligies @webron -- I'd screwed up the maven proxy configuration.

I thought I had settings.xml in the correct place, but when I ran the install with the -X argument:

mvn clean install -X

...I saw the path to the global settings wasn't where I'd put the file.

So, mega apologies!

webron commented 9 years ago

No worries, glad you got it resolved.