2012-04-12 194 views
1

我已經簽出了一個maven項目,當我嘗試編譯它時,它給了我一個「Return code is: 500, ReasonPhrase:Internal Server Error.」。奇怪的是,雖然對於一個同事來說,完全一樣的工作沒有問題。我能在這裏做什麼?Maven項目 - 對我來說服務器錯誤500,但對其他人正常工作

我Maven的輸出

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> 

P.S:

我的Maven的版本

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" 

P.S:它可以有一些與我們的Maven的版本?我使用Maven 3,他使用Maven 2.這個語義科學服務器從哪裏來?

P.P.S .:好吧,我終於擺脫了從我的pom.xml刪除它的語義學倉庫,並刪除〜/ .m2/repository文件夾。現在我得到另一個錯誤,見下文。

奇怪的是,以下網址在瀏覽器中是可解析:

但是一平不起作用:

$ 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 

但是,這並沒有幫助。

好吧我不知道爲什麼,但現在它爲我工作。不過,我想知道爲什麼...

回答

1

你一定是什麼地方http://s1.semanticscience.org:8080/nexus/

可能在你的settings.xml文件的一個無論是在$HOME/.m2$MAVEN_HOME/conf/配置一個Maven代理,與名稱。

+0

Nope :-('〜$ locate settings.xml | xargs grep semanticscience' - > no output – 2012-04-12 14:23:33

+0

你在nexus服務器上有任何驗證嗎? – 2012-04-12 14:24:17

+1

我試圖在這裏連接:http://s1.semanticscience.org :8080/nexus/content/groups/public/com/extjs/gxt/2.2.5,我得到了錯誤500.你的同事可能已經在他的本地倉庫中存在這個工件了,而且Nexus服務器似乎配置不正確 – 2012-04-12 14:30:37

1

當Maven試圖從那裏檢索到gxt-2.2.5時,好像Nexus服務器回覆了錯誤500。我只是再試一次,如果它仍然不起作用,請檢查瀏覽器中的URL,並可能與Nexus安裝的管理員進行交流。

+0

嗯,我現在嘗試了幾次,它從來沒有工作但是對於我的coleague而言,這個問題沒有發生。 – 2012-04-12 14:20:51

1

你試圖從http://s1.semanticscience.org:8080/nexus/content/groups/public/com/下載com.extjs:gxt:pom:2.2.5,但它不是可在該回購的Nexus ..

我懷疑你的同事必須檢索從另一個存儲庫神器,但你不是。看到任何他可能已經配置的其他存儲庫,或者您將要離開。

+0

我們有**完全相同的文件。 – 2012-04-13 13:59:46

相關問題