Windows上的Dspace Build错误

时间:2014-08-23 05:08:44

标签: dspace

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

  • Dspace 数字 存储库安装 应用
  • 我尝试通过重建纠正这些错误但是我 的失败即可。
  • 谢谢
[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

3 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

目前还没有通过maven central提供restlet jar。

临时解决方法:

  1. 确保从dspace-parent(dspace文件夹旁边的pom)
  2. 构建
  3. 添加到dspace-parent存储库
  4. 
    
    <repository> 
         <id>restlet</id> 
         <name>restlet</name> 
         <url>http://maven.restlet.org</url> 
    </repository>
    &#13;
    &#13;
    &#13;

答案 2 :(得分:0)

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