adamfisk / LittleProxy

High performance HTTP proxy originally written by your friends at Lantern and now maintained by a stellar group of volunteer open source programmers.
https://www.getlantern.org
Apache License 2.0
2.06k stars 778 forks source link

Could not find artifact org.dnsjava:dnsjava:jar:2.1.3 in central #27

Closed ponomandr closed 12 years ago

ponomandr commented 12 years ago

When I do fresh checkout of "master" branch and run build I get this:

$ mvn clean compile
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building LittleProxy 0.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/littleshoot/dnssec4j/0.1-SNAPSHOT/maven-metadata.xml
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/org/littleshoot/dnssec4j/0.1-SNAPSHOT/maven-metadata.xml (767 B at 0.3 KB/sec)
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/littleshoot/dnssec4j/0.1-SNAPSHOT/dnssec4j-0.1-20120205.033959-8.pom
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/org/littleshoot/dnssec4j/0.1-SNAPSHOT/dnssec4j-0.1-20120205.033959-8.pom (9 KB at 3.4 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/dnsjava/dnsjava/2.1.3/dnsjava-2.1.3.pom
[WARNING] The POM for org.dnsjava:dnsjava:jar:2.1.3 is missing, no dependency information available
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/littleshoot/dnssec4j/0.1-SNAPSHOT/dnssec4j-0.1-20120205.033959-8.jar
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/org/littleshoot/dnssec4j/0.1-SNAPSHOT/dnssec4j-0.1-20120205.033959-8.jar (12 KB at 6.1 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/dnsjava/dnsjava/2.1.3/dnsjava-2.1.3.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.874s
[INFO] Finished at: Thu Mar 08 22:09:20 CET 2012
[INFO] Final Memory: 11M/132M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project littleproxy: Could not resolve dependencies for project org.littleshoot:littleproxy:bundle:0.5-SNAPSHOT: Could not find artifact org.dnsjava:dnsjava:jar:2.1.3 in central (http://repo1.maven.org/maven2) -> [Help 1]

The commit is 4a9921945339c4a86f4ee49f5249d70181b1291f

theotherian commented 12 years ago

You may want to add repository.sonatype.org to your Maven settings; it looks like they have it:

https://repository.sonatype.org/index.html#nexus-search;quick~dnsjava

ponomandr commented 12 years ago

Well, it's rather workaround than solution. I could install the jar to my local repo as well. But I would prefer if I it can be built out of the box.

So I see two possible solutions:

  1. Configure repository.sonatype.org in the pom.xml
  2. Use dnsjava-2.0.6 which is present in the maven central
theotherian commented 12 years ago

You can also point to repository.sonatype.org in the mirrors of your maven settings rather than the pom.

adamfisk commented 12 years ago

Apologies for the delay on this guys, but I added the Sonatype snapshots repo. I tried to convince the dnsjava maintainer to deploy to maven central himself, but no go.