MVN build failure

1,465 views
Skip to first unread message

Arshad Iqbal

unread,
Nov 11, 2017, 1:42:32 AM11/11/17
to DSpace Technical Support
[INFO] DSpace Kernel :: API and Implementation ............ FAILURE [  4.487 s]
[INFO] DSpace Addon Modules ............................... SKIPPED
[INFO] DSpace Kernel :: Additions and Local Customizations  SKIPPED
[INFO] DSpace XML-UI (Manakin) ............................ SKIPPED
[INFO] DSpace XML-UI (Manakin) :: Local Customizations .... SKIPPED
[INFO] DSpace JSP-UI ...................................... SKIPPED
[INFO] DSpace JSP-UI :: Local Customizations .............. SKIPPED
[INFO] DSpace RDF ......................................... SKIPPED
[INFO] DSpace RDF :: Local Customizations ................. SKIPPED
[INFO] DSpace REST :: API and Implementation .............. SKIPPED
[INFO] DSpace REST :: Local Customizations ................ SKIPPED
[INFO] DSpace SWORD ....................................... SKIPPED
[INFO] DSpace SWORD :: Local Customizations ............... SKIPPED
[INFO] DSpace SWORD v2 .................................... SKIPPED
[INFO] DSpace SWORD v2 :: Local Customizations ............ SKIPPED
[INFO] Apache Solr Webapp ................................. SKIPPED
[INFO] DSpace SOLR :: Local Customizations ................ SKIPPED
[INFO] DSpace OAI-PMH ..................................... SKIPPED
[INFO] DSpace OAI-PMH :: Local Customizations ............. SKIPPED
[INFO] DSpace Assembly and Configuration .................. SKIPPED
[INFO] DSpace XML-UI Mirage2 Theme ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.830 s
[INFO] Finished at: 2017-11-11T11:31:35+05:00
[INFO] Final Memory: 37M/329M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create (default) on project dspace-api: Cannot get the revision information from the scm repository :
[ERROR] Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "git" (in directory "/build/dspace-6.2-src-release/dspace-api"): error=2, No such file or directory
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :dspace-api

Santosh Gupta

unread,
Nov 28, 2017, 1:04:10 AM11/28/17
to DSpace Technical Support
This is the problem faced by many people. I tried to solve many ways but still, it is unresolved. If someone gets its solution, please mail me to santosh...@gmail.com

Tim Donohue

unread,
Nov 28, 2017, 11:46:45 AM11/28/17
to Santosh Gupta, DSpace Technical Support
Hello,

There is a known issue that one of the Maven modules DSpace uses (in DSpace 6) seems to require *git* to be present on the filesystem.  


We are still looking for a volunteer to investigate this further and figure out a solution. But, in the meantime, as described in the ticket, you can do ONE of the following:

1) Install Git on your system: https://git-scm.com/downloads

OR

2) Comment out these lines in the dspace-api's "pom.xml" and rebuild DSpace: https://github.com/DSpace/DSpace/blob/master/dspace-api/pom.xml#L103-L115

The first solution (installing Git) is likely more correct for now, until we find a way to work around the issue.

If anyone else is affected by this issue or has time to devote to debugging it, we could use a volunteer on the ticket!

Tim

--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

Bharat Chaudhari

unread,
Feb 18, 2019, 4:27:17 AM2/18/19
to DSpace Technical Support

  Please try this to fix your issue 
  
   sudo apt-get -y install openjdk-7-jdk

   mvn -U clean package -Denv=test

Bharat Chaudhari

unread,
Feb 18, 2019, 4:27:27 AM2/18/19
to DSpace Technical Support
These Two steps can fix the issue on solr package i

sudo apt-get -y install openjdk-7-jdk
mvn -U clean package -Denv=test


On Saturday, November 11, 2017 at 12:12:32 PM UTC+5:30, Arshad Iqbal wrote:

Toàn pham

unread,
Apr 28, 2021, 10:55:24 AM4/28/21
to DSpace Technical Support
Hi people I have a mistake when installing Dspace 6.3 about Maven 2.7, and Maven 3.8.1
 please 

loiDspace.JPG
Reply all
Reply to author
Forward
0 new messages