Error When Maven Run

898 views
Skip to first unread message

Asha vaghela

unread,
Aug 24, 2016, 7:56:30 AM8/24/16
to VIVO Tech
we are trying to install vivo 1.9 but at the time of run maven, we are facing these kind of errors. 

[WARNING] Cannot get the revision information from the scm repository, proceedin
g with revision of true :
Exception while executing SCM command.
[INFO] Storing buildNumber: true at timestamp: 1472039405419
[WARNING] Cannot get the branch information from the git repository:
Error while executing command.
[INFO] ShortRevision tag detected. The value is '7'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=7 HEAD"
[INFO] Working directory: C:\Vitro\api
[WARNING] Cannot get the branch information from the scm repository, proceeding
with UNKNOWN_BRANCH :
Exception while executing SCM command.
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ vitro-api
---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ vitro-api ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
12.4:test (default-test) on project vitro-api: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Vitro\api\target\surefire-reports for the individual
test results.
[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:
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :vitro-api

Pl. help to resolve the problem



Asha Vaghela
Project Associate (CS)
INFLIBNET Centre (An IUC of UGC)
Infocity, Gandhinagar, Gujarat - 382007, India

Graham Triggs

unread,
Aug 26, 2016, 6:32:27 AM8/26/16
to Asha vaghela, VIVO Tech
Hi,

Looks like it might be failing due to a character set issue on Windows.

I think this can be resolved with a change to the Maven project description in a future release.

For now, I would advise that you use the “standard” distribution, rather than the full package.

Regards,
G

-- 

Graham Triggs
Technical Lead for VIVO
DuraSpace.org

--
You received this message because you are subscribed to the Google Groups "VIVO Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vivo-tech+...@googlegroups.com.
To post to this group, send email to vivo...@googlegroups.com.
Visit this group at https://groups.google.com/group/vivo-tech.
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/CAG8YZKE0yA5o%3DXtqxvGVb%3DtH5UbR-MWbfLOS7skLg1zZtkA5XA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Benjamin Gross

unread,
Jun 9, 2017, 7:05:37 PM6/9/17
to VIVO Tech
FWIW, I ran into this error today and spent way too much time fiddling with the poms and checking git repos. Running maven with the -e flag ended up revealing the true problem... I had told maven to compile against Java 8 but my JAVA_HOME was set to Java 7. Updating JAVA_HOME made the error go away. Duh! 

Benjamin
Reply all
Reply to author
Forward
0 new messages