0

请帮助我更正这些错误以在Windows 7上成功构建Dspace 。

  • 这是Dspace Digital Repository应用 程序的安装。
  • 我试图通过重建来纠正这些错误,但我 失败了
  • 谢谢
[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
4

3 回答 3

0

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>

于 2014-10-16T15:49:13.483 回答
0

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

于 2014-08-25T21:55:15.300 回答
0

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

于 2017-10-18T04:02:37.673 回答