Search code examples
dspace

Dspace Build errors on Windows


Please help me to correct these errors to build Dspace successfully on windows 7.

  • This is Installation of Dspace Digital Repository application.
  • I have tried to correct these errors by do rebuild but I failed.
  • Thank you
[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

Solution

  • To fix this problem just delete the repository directory ".m2" which located in C:\Documents and Settings{your-username}.m2