Return code is: 500, ReasonPhrase:Internal Server Error.
コンパイルしようとすると「」が表示されるMavenプロジェクトをチェックアウトしました。不思議なことに、同僚にとってはまったく同じことが問題なく機能しています。ここで何ができますか?
MyMavenの出力
autosparql-lite$ mvn clean compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building AutoSPARQL Lite 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://uk.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
Downloaded: http://uk.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom (5 KB at 9.4 KB/sec)
Downloading: http://uk.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar
Downloaded: http://uk.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar (23 KB at 57.3 KB/sec)
Downloading: http://s1.semanticscience.org:8080/nexus/content/groups/public/com/extjs/gxt/2.2.5/gxt-2.2.5.pom
Downloading: http://s1.semanticscience.org:8080/nexus/content/groups/public/uk/ac/shef/wit/simmetrics/1.6.2/simmetrics-1.6.2.pom
Downloading: http://s1.semanticscience.org:8080/nexus/content/groups/public/woodstox/wstx-api/3.2.0/wstx-api-3.2.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.091s
[INFO] Finished at: Thu Apr 12 15:45:28 CEST 2012
[INFO] Final Memory: 14M/209M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project autosparql-lite:
Could not resolve dependencies for project org.dllearner:autosparql-lite:war:1.0-SNAPSHOT:
Failed to collect dependencies for [com.google.gwt:gwt-servlet:jar:2.3.0 (compile), com.google.gwt:gwt-user:jar:2.3.0 (provided), net.sf.ehcache:ehcache:pom:2.5.0 (compile), junit:junit:jar:4.8.1 (test), com.extjs:gxt:jar:2.2.5 (compile), org.dllearner:components-ext:jar:1.0-SNAPSHOT (compile), commons-configuration:commons-configuration:jar:1.6 (compile)]:
Failed to read artifact descriptor for com.extjs:gxt:jar:2.2.5:
Could not transfer artifact com.extjs:gxt:pom:2.2.5 from/to semanticscience.org (http://s1.semanticscience.org:8080/nexus/content/groups/public/):
Failed to transfer file: http://s1.semanticscience.org:8080/nexus/content/groups/public/com/extjs/gxt/2.2.5 /gxt-2.2.5.pom. Return code is: 500, ReasonPhrase:Internal Server Error. -> [Help 1]
私のsettings.xml
<settings>
<mirrors>
<mirror>
<id>UK</id>
<name>UK Central</name>
<url>http://uk.maven.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>
PS:
MyMavenバージョン
Apache Maven 3.0.4 (rNON-CANONICAL_2012-01-24_13-02_root; 2012-01-24 14:02:02+0100)
Maven home: /opt/maven
Java version: 1.7.0_03-icedtea, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "3.0.26-1-lts", arch: "amd64", family: "unix"
彼のMavenバージョン
Apache Maven 2.2.1 (rdebian-4)
Java version: 1.7.0
Java home: /usr/lib/jvm/jdk1.7.0/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux" version: "2.6.38-13-generic" arch: "amd64" Family: "unix"
PS:それは私たちのMavenバージョンと何か関係がありますか?私はMaven3を使用し、彼はMaven 2を使用しています。そして、このセマンティックサイエンスサーバーはどこから来たのですか?
PPS:わかりました。pom.xmlからセマンティックサイエンスリポジトリを削除し、〜/ .m2 / repositoryフォルダーを削除することで、ついにセマンティックサイエンスリポジトリを削除しました。ただし、別のエラーが発生します。以下を参照してください。
奇妙なことに、次のURLはブラウザで解決できます。
ただし、pingは機能しません。
$ ping http://repo.aduna-software.org
ping: unknown host http://repo.aduna-software.org
$ ping http://repo.aduna-software.org/maven2/releases
ping: unknown host http://repo.aduna-software.org/maven2/releases
ただし、pingのせいではありません。
$ ping www.google.de
PING www-cctld.l.google.com (173.194.69.94) 56(84) bytes of data.
64 bytes from bk-in-f94.1e100.net (173.194.69.94): icmp_req=1 ttl=48 time=13.3 ms
[...]
エラーは次のとおりです。
Failed to read artifact descriptor for org.openrdf.sesame:sesame-sail-memory:jar:2.4.0: Could not transfer artifact org.openrdf.sesame:sesame-sail-memory:pom:2.4.0 from/to aduna-software-release-repo (http://repo.aduna-software.org/maven2/releases): repo.aduna-software.org: Der Name oder der Dienst ist nicht bekannt: Unknown host repo.aduna-software.org: Der Name oder der Dienst ist nicht bekannt
http://wiki.tuxtorials.de/wiki/Ping:_unknown_host
私は私に言ったことを試してみました
echo "echo \"hosts: files dns\" > /etc/nsswitch.conf" | sudo sh
しかし、それも役に立ちませんでした。
理由はわかりませんが、今ではうまくいきました。でも理由を知りたいのですが…