【问题标题】:Trying to setup environment for GeoNetwork metadata editor尝试为 GeoNetwork 元数据编辑器设置环境
【发布时间】:2012-08-05 14:04:09
【问题描述】:

我正在尝试为 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:

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

【问题讨论】:

    标签: eclipse maven metadata geoserver geonetwork


    【解决方案1】:

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

    即便如此,您应该也可以使用 Java 1.5 构建...

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

    因为带有 maven 的 eclipse 喜欢崩溃,所以我建议使用命令 mvn clean install 从命令行运行 maven。 如果您必须在 Eclipse 中使用 maven,那么我建议重新启动 eclipse 并重新运行 maven。 此外,使用 Geonetwork 开发人员手册进行构建(谷歌它,我不能插入超过 2 个链接;))。

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

    【讨论】:

      猜你喜欢
      • 2016-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-23
      • 2021-04-05
      • 1970-01-01
      • 2014-02-25
      相关资源
      最近更新 更多