【发布时间】: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