【问题标题】:Dspace Build errors on WindowsWindows 上的 Dspace 构建错误
【发布时间】:2014-08-23 05:08:44
【问题描述】:

请帮助我更正这些错误,以便在 windows 7 上成功构建 Dspace

  • 这是 Dspace Digital 存储库安装 申请。
  • 我已尝试通过重新构建来纠正这些错误,但我 失败
  • 谢谢
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] error: error reading C:\Users\Abu-Elnil\.m2\repository\org\restlet\jee\o
rg.restlet\2.1.1\org.restlet-2.1.1.jar; error in opening zip file
[ERROR] error: error reading C:\Users\Abu-Elnil\.m2\repository\org\restlet\jee\o
rg.restlet.ext.servlet\2.1.1\org.restlet.ext.servlet-2.1.1.jar; error in opening
 zip file
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DSpace Addon Modules .............................. SUCCESS [1:46.473s]
[INFO] DSpace Kernel :: Additions and Local Customizations  FAILURE [20:10.606s]

[INFO] DSpace XML-UI (Manakin) :: Local Customizations ... SKIPPED
[INFO] DSpace LNI :: Local Customizations ................ SKIPPED
[INFO] DSpace JSP-UI :: Local Customizations ............. SKIPPED
[INFO] DSpace REST (JAX RS 1 - Jersey) :: Local Customizations  SKIPPED
[INFO] DSpace SWORD :: Local Customizations .............. SKIPPED
[INFO] DSpace SWORD v2 :: Local Customizations ........... SKIPPED
[INFO] DSpace SOLR :: Local Customizations ............... SKIPPED
[INFO] DSpace OAI 2.0 :: Local Customizations ............ SKIPPED
[INFO] DSpace Assembly and Configuration ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22:06.025s
[INFO] Finished at: Fri Aug 22 17:16:03 AST 2014
[INFO] Final Memory: 22M/68M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project additions: Compilation failure: Compila
tion failure:
[ERROR] error: error reading C:\Users\Abu-Elnil\.m2\repository\org\restlet\jee\o
rg.restlet\2.1.1\org.restlet-2.1.1.jar; error in opening zip file
[ERROR] error: error reading C:\Users\Abu-Elnil\.m2\repository\org\restlet\jee\o
rg.restlet.ext.servlet\2.1.1\org.restlet.ext.servlet-2.1.1.jar; error in opening
 zip file
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

【问题讨论】:

  • 您能否添加以下详细信息:您正在使用的 maven 版本(推荐使用 maven 3)、DSpace 版本、您用于启动此构建的确切 maven 命令,包括您所在的工作目录执行了命令。如果您发布完整的 maven 构建,例如通过 pastebin.com,它也可能很方便
  • 非常感谢您的关心详细信息是:maven版本:maven-3.2.3/dspace版本:4.2/命令是:mvn package/目录:C:\dspace\dspace-4.2- src-release\dspace
  • 不太确定问题的原因是什么,因为这听起来不错。但我建议您删除本地 Maven 缓存,例如C:\Users\Abu-Elnil\.m2\repository 目录中的所有文件夹,然后尝试再次运行 mvn。虽然它可能不相关,但我也建议执行“mvn clean package”而不是“mvn package”。
  • 您可能还想尝试简单地运行:mvn -U clean package -U 应该告诉 Maven 重新下载您的依赖项。听起来您的“C:\Users\Abu-Elnil\.m2\repository\org\restlet\jee\org.restlet.ext.servlet\2.1”中当前存在的“org.restlet”依赖项有问题。 1`目录。
  • 谢谢 Bram Luyten、Tim Donohue,我会尝试并告诉结果。

标签: dspace


【解决方案1】:

要解决此问题,只需删除位于 C:\Documents and Settings{your-username}.m2 中的存储库目录“.m2”

【讨论】:

    【解决方案2】:

    restlet jar 目前不通过 maven Central 提供。

    临时解决方法:

    1. 确保从 dspace-parent(dspace 文件夹旁边的 pom)构建
    2. 添加到 dspace-parent 存储库

    <repository> 
         <id>restlet</id> 
         <name>restlet</name> 
         <url>http://maven.restlet.org</url> 
    </repository>

    【讨论】:

      【解决方案3】:

      你需要在 pom.xml 中将 maven-jar-plugin 的版本更改为 3.0.2 和 maven-war-plugin 到 3.2.0 版本阅读下面的评论`

      【讨论】:

      • org.apache.maven.pluginsmaven-jar-plugin3.0.2
      • org.apache.maven.pluginsmaven-war-plugin3.2.0
      猜你喜欢
      • 2013-12-05
      • 1970-01-01
      • 2018-04-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-18
      • 1970-01-01
      相关资源
      最近更新 更多