2012-08-08 49 views
1

我正在嘗試爲Geonetwork元數據編輯器設置環境。我已經用Tomcat 7.0安裝了Java 1.5 SE。我用this tutorial來設置它。在下載依賴關係並從Eclipse中編譯代碼形式包根文件夾時,一切都進行得很順利,右鍵單擊根文件夾中的pom.xml文件,然後選擇Run As | Maven package。然後,我得到這個錯誤:試圖爲GeoNetwork元數據編輯器設置環境

[INFO] ------------------------------------------------------------------------ 
[INFO] Building GeoNetwork opensource 2.9.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building Caching xslt module 2.9.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[WARNING] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.4 is missing, no dependency information available 
[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Summary: 
[INFO] 
[INFO] GeoNetwork opensource ............................. SUCCESS [0.001s] 
[INFO] Caching xslt module ............................... FAILURE [0.027s] 
[INFO] Jeeves modules .................................... SKIPPED 
[INFO] Oaipmh modules .................................... SKIPPED 
[INFO] ArcSDE module (dummy-api) ......................... SKIPPED 
[INFO] GeoNetwork web client module ...................... SKIPPED 
[INFO] GeoNetwork Web module ............................. SKIPPED 
[INFO] GeoServer module .................................. SKIPPED 
[INFO] Gast module ....................................... SKIPPED 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 0.476s 
[INFO] Finished at: Wed Aug 08 14:10:43 CEST 2012 
[INFO] Final Memory: 3M/6M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:3.0.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.4: Failure to find org.apache.maven.plugins:maven-resources-plugin:pom:3.0.4 in http://oss.sonatype.org/content/repositories/github-releases was cached in the local repository, resolution will not be reattempted until the update interval of oss.sonatype.org-github-releases has elapsed or updates are forced -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 

我GOOGLE了,但不成功:(

回答

0

使用1.6 JRE來運行地理網這是寫在測繪成果的開發手冊,並在教程中,您鏈接

即便如此,你應該能夠建立與Java 1.5中也恕我直言...

我有同樣的問題(JDK &版本的JRE 1.7.0_17)建設時,我用Google搜索了Maven倉庫和手動編輯th中的存儲庫的URL e pom.xml文件。

因爲Eclipse使用Maven喜歡喜歡崩潰,我會建議使用命令MVN全新安裝的命令行運行Maven。 如果你必須在eclipse中使用maven,那麼我會建議重新啓動eclipse並重新運行maven。 此外,使用Geonetwork開發人員手冊進行構建(谷歌它,我不能插入更多的2個鏈接;))。

你也可以找到在bug trackerdev forum爲什麼構建崩潰了一些線索。