尝试为GeoNetwork元数据编辑器设置环境

时间:2012-08-08 12:50:02

标签: eclipse maven metadata geoserver geonetwork

我正在尝试为Geonetwork元数据编辑器设置环境。我已经使用Tomcat 7.0安装了Java 1.5 SE。我用this tutorial来设置它。如果应该下载依赖项并从Eclipse编译代码表包根文件夹,并右键单击根文件夹中的pom.xml文件并选择Run As | Maven package,那么一切顺利。然后我收到了这个错误:

[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:

我用谷歌搜索但不成功:(

1 个答案:

答案 0 :(得分:0)

使用1.6 JRE运行Geonetwork。它是在Geonetwork开发人员手册中以及您链接的教程中编写的。

即便如此,你也应该能够使用Java 1.5进行构建......

构建时我遇到了同样的问题(JDK& JRE版本1.7.0_17)。我搜索maven存储库并手动编辑pom.xml文件中存储库的url。

因为even与maven喜欢崩溃,我建议使用命令mvn clean install从命令行运行maven。 如果你必须在eclipse中使用maven,那么我会建议重新启动eclipse并重新运行maven。 此外,使用Geonetwork开发人员手册进行构建(google it,我不能插入更多的2个链接;)。)

您还可以在bug trackerdev forum中找到有关构建崩溃原因的一些线索。