Difficulty setting up dspace 6.3

32 views
Skip to first unread message

Ashim Kapoor

unread,
Feb 26, 2020, 6:43:04 AM2/26/20
to DSpace Technical Support
Dear All,

I am following instructions on this page:-


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

Sean Carte

unread,
Feb 26, 2020, 8:26:40 AM2/26/20
to Ashim Kapoor, DSpace Technical Support
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/

--
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...@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.


--

Mark H. Wood

unread,
Feb 26, 2020, 9:46:57 AM2/26/20
to DSpace Technical Support
On Wed, Feb 26, 2020 at 05:12:49PM +0530, Ashim Kapoor wrote:
[snip]
> 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

That warning can be ignored, and I think it will be fixed in DSpace 7.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc

Ashim Kapoor

unread,
Feb 27, 2020, 4:30:03 AM2/27/20
to DSpace Technical Support
Dear Sean and Mark,

Many thanks.

Are the following warnings a big deal? Or can I ignore them?

INFO] Reading assembly descriptor: src/main/assembly/assembly.xml
[WARNING] The following patterns were never triggered in this artifact exclusion filter:
o  'org.glassfish.hk2.external:bean-validator:jar:*'

[WARNING] The following patterns were never triggered in this artifact exclusion filter:
o  'org.dspace.modules:xmlui-mirage2:war:*'

[WARNING] The following patterns were never triggered in this artifact exclusion filter:
o  'org.glassfish.hk2.external:bean-validator:jar:*'

[INFO] Copying files to /home/ashim/dspace-6.3-release/dspace/target/dspace-installer
[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary for DSpace Parent Project 6.3:
[INFO]
[INFO] DSpace Parent Project .............................. SUCCESS [01:15 min]
[INFO] DSpace Addon Modules ............................... SUCCESS [  0.018 s]
[INFO] DSpace Kernel :: Additions and Local Customizations  SUCCESS [04:39 min]
[INFO] DSpace XML-UI (Manakin) :: Local Customizations .... SUCCESS [02:24 min]
[INFO] DSpace JSP-UI :: Local Customizations .............. SUCCESS [  8.729 s]
[INFO] DSpace RDF :: Local Customizations ................. SUCCESS [02:21 min]
[INFO] DSpace REST :: Local Customizations ................ SUCCESS [01:35 min]
[INFO] DSpace SWORD :: Local Customizations ............... SUCCESS [  6.633 s]
[INFO] DSpace SWORD v2 :: Local Customizations ............ SUCCESS [ 14.835 s]
[INFO] DSpace SOLR :: Local Customizations ................ SUCCESS [01:27 min]
[INFO] DSpace OAI-PMH :: Local Customizations ............. SUCCESS [ 27.843 s]
[INFO] DSpace Assembly and Configuration .................. SUCCESS [ 32.712 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

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...@googlegroups.com.

Mark H. Wood

unread,
Feb 28, 2020, 9:40:00 AM2/28/20
to DSpace Technical Support
On Thu, Feb 27, 2020 at 02:59:49PM +0530, Ashim Kapoor wrote:
> Are the following warnings a big deal? Or can I ignore them?
>
> INFO] Reading assembly descriptor: src/main/assembly/assembly.xml
> [WARNING] The following patterns were never triggered in this artifact
> exclusion filter:
> o 'org.glassfish.hk2.external:bean-validator:jar:*'
>
> [WARNING] The following patterns were never triggered in this artifact
> exclusion filter:
> o 'org.dspace.modules:xmlui-mirage2:war:*'
>
> [WARNING] The following patterns were never triggered in this artifact
> exclusion filter:
> o 'org.glassfish.hk2.external:bean-validator:jar:*'

I would ignore them.
signature.asc
Reply all
Reply to author
Forward
0 new messages