I don't know about your maven-enforcer-plugin error, but the first error is
a permissions problem. As root:
 chown -R dspace:dspace /home/dspace/dspace-6.3-release/

On Wed, 26 Feb 2020 at 13:43, Ashim Kapoor <ashim.kap...@nipfp.org.in>
wrote:

> Dear All,
>
> I am following instructions on this page:-
>
> https://wiki.lyrasis.org/display/DSDOC6x/Installing+DSpace
>
> When I do mvn package as root I don't get the following error.
>
> However when I do mvn package as unix user dspace I get the following
> error:-
>
>
> [INFO] Reactor Summary for DSpace Parent Project 6.3:
> [INFO]
> [INFO] DSpace Parent Project .............................. SUCCESS [
>  1.209 s]
> [INFO] DSpace Addon Modules ............................... SUCCESS [
>  0.038 s]
> [INFO] DSpace Kernel :: Additions and Local Customizations  SUCCESS [
>  6.209 s]
> [INFO] DSpace XML-UI (Manakin) :: Local Customizations .... SUCCESS [
> 15.203 s]
> [INFO] DSpace JSP-UI :: Local Customizations .............. SUCCESS [
>  7.210 s]
> [INFO] DSpace RDF :: Local Customizations ................. SUCCESS [
>  6.657 s]
> [INFO] DSpace REST :: Local Customizations ................ SUCCESS [
>  8.845 s]
> [INFO] DSpace SWORD :: Local Customizations ............... SUCCESS [
>  6.799 s]
> [INFO] DSpace SWORD v2 :: Local Customizations ............ SUCCESS [
>  6.757 s]
> [INFO] DSpace SOLR :: Local Customizations ................ FAILURE [
>  3.155 s]
> [INFO] DSpace OAI-PMH :: Local Customizations ............. SKIPPED
> [INFO] DSpace Assembly and Configuration .................. SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:  01:02 min
> [INFO] Finished at: 2020-02-26T17:04:45+05:30
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-war-plugin:2.6:war (default-war) on project
> solr: Failed to copy file for artifact
> [org.dspace:dspace-solr:jar:classes:6.3:compile]:
> /home/dspace/dspace-6.3-release/dspace/modules/solr/target/solr-6.3/WEB-INF/lib/dspace-solr-6.3-classes.jar
> (Permission denied) -> [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 :solr
> $
>
> Also in BOTH cases I get this warning :-
>
> $ mvn package
> [INFO] Scanning for projects...
> [WARNING] The project org.dspace:dspace-parent:pom:6.3 uses prerequisites
> which is only intended for maven-plugin projects but not for non
> maven-plugin projects. For such purposes you should use the
> maven-enforcer-plugin. See
> https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
>
>
> Can someone please help me ?
>
> Thank you,
> Ashim
>
> --
> All messages to this mailing list should adhere to the DuraSpace Code of
> Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/CAGEJAoF7Gc%2B2Rv8hZA380rvEhHMBZ_0RPgusi-NKg2se--aNzg%40mail.gmail.com
> <https://groups.google.com/d/msgid/dspace-tech/CAGEJAoF7Gc%2B2Rv8hZA380rvEhHMBZ_0RPgusi-NKg2se--aNzg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


--

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CA%2BxAuhMueaZhSBVANQG9SkDfBeyW4hTNKZPB7qLnTaBeD204tQ%40mail.gmail.com.

Reply via email to