saving . . . saved DSpace Parent Project .............................. FAILURE has been deleted. DSpace Parent Project .............................. FAILURE has been hidden .
DSpace Parent Project .............................. FAILURE
Title
Question
After Installation when I follow the next step for email configuration it shows the message  "DSpace Parent Project .............................. FAILURE".
I have followed all the steps as per documents and video, But I am not success.
Please Solve this problems and help me.

DSpace Email-configuration-for-DSpace-on-Ubuntu-Linux-OS 10-11 min 20-30 sec 27-10-21, 11:58 a.m. SAN2020

Answers:

DSpace build can fail due to several reasons. Please share the full error logs it will help to troubleshoot the problem.
10-11-21, 1:37 p.m. pankajap@cse.iitb.ac.in
libgmrc@libgmrc-260-a040il:~$ sudo su - dspace
[sudo] password for libgmrc: 
dspace@libgmrc-260-a040il:~$ sudo gedit /home/dspace/dspace-6.3-src-release/dspace/config/dspace.cfg
[sudo] password for dspace: 

** (gedit:3839): WARNING **: 12:33:15.442: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported

** (gedit:3839): WARNING **: 12:33:15.443: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

** (gedit:3839): WARNING **: 12:33:17.636: Set document metadata failed: Setting attribute metadata::gedit-position not supported
dspace@libgmrc-260-a040il:~$ sudo gedit $HOME/Rebuild-DSpace

** (gedit:3958): WARNING **: 12:33:52.372: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported

** (gedit:3958): WARNING **: 12:33:52.373: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

** (gedit:3958): WARNING **: 12:33:53.641: Set document metadata failed: Setting attribute metadata::gedit-position not supported
dspace@libgmrc-260-a040il:~$ sudo service tomcat8 stop’’’
 * Usage: /etc/init.d/tomcat8 {start|stop|restart|try-restart|force-reload|status}
dspace@libgmrc-260-a040il:~$ sleep 5
dspace@libgmrc-260-a040il:~$ cd /home/dspace/dspace-6.3-src-release
dspace@libgmrc-260-a040il:~/dspace-6.3-src-release$ mvn -U clean 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
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] DSpace Parent Project                                              [pom]
[INFO] DSpace Services Framework :: API and Implementation                [jar]
[INFO] DSpace Kernel :: API and Implementation                            [jar]
[INFO] DSpace Addon Modules                                               [pom]
[INFO] DSpace Kernel :: Additions and Local Customizations                [jar]
[INFO] DSpace XML-UI (Manakin)                                            [war]
[INFO] DSpace XML-UI (Manakin) :: Local Customizations                    [war]
[INFO] DSpace JSP-UI                                                      [war]
[INFO] DSpace JSP-UI :: Local Customizations                              [war]
[INFO] DSpace RDF                                                         [war]
[INFO] DSpace RDF :: Local Customizations                                 [war]
[INFO] DSpace REST :: API and Implementation                              [war]
[INFO] DSpace REST :: Local Customizations                                [war]
[INFO] DSpace SWORD                                                       [war]
[INFO] DSpace SWORD :: Local Customizations                               [war]
[INFO] DSpace SWORD v2                                                    [war]
[INFO] DSpace SWORD v2 :: Local Customizations                            [war]
[INFO] Apache Solr Webapp                                                 [war]
[INFO] DSpace SOLR :: Local Customizations                                [war]
[INFO] DSpace OAI-PMH                                                     [war]
[INFO] DSpace OAI-PMH :: Local Customizations                             [war]
[INFO] DSpace Assembly and Configuration                                  [pom]
[INFO] DSpace XML-UI Mirage2 Theme                                        [war]
[INFO] 
[INFO] ----------------------< org.dspace:dspace-parent >----------------------
[INFO] Building DSpace Parent Project 6.3                                [1/23]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for DSpace Parent Project 6.3:
[INFO] 
[INFO] DSpace Parent Project .............................. FAILURE [  0.196 s]
[INFO] DSpace Services Framework :: API and Implementation  SKIPPED
[INFO] DSpace Kernel :: API and Implementation ............ SKIPPED
[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:  1.635 s
[INFO] Finished at: 2021-11-17T12:34:44+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "package’’’". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/LifecyclePhaseNotFoundException
dspace@libgmrc-260-a040il:~/dspace-6.3-src-release$ exit
logout
libgmrc@libgmrc-260-a040il:~$ sudo su - dspace
[sudo] password for libgmrc: 
dspace@libgmrc-260-a040il:~$ sudo chmod 777 $HOME/Rebuild-DSpace
[sudo] password for dspace: 
dspace@libgmrc-260-a040il:~$ $HOME/Rebuild-DSpace
 * Usage: /etc/init.d/tomcat8 {start|stop|restart|try-restart|force-reload|status}
[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
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] DSpace Parent Project                                              [pom]
[INFO] DSpace Services Framework :: API and Implementation                [jar]
[INFO] DSpace Kernel :: API and Implementation                            [jar]
[INFO] DSpace Addon Modules                                               [pom]
[INFO] DSpace Kernel :: Additions and Local Customizations                [jar]
[INFO] DSpace XML-UI (Manakin)                                            [war]
[INFO] DSpace XML-UI (Manakin) :: Local Customizations                    [war]
[INFO] DSpace JSP-UI                                                      [war]
[INFO] DSpace JSP-UI :: Local Customizations                              [war]
[INFO] DSpace RDF                                                         [war]
[INFO] DSpace RDF :: Local Customizations                                 [war]
[INFO] DSpace REST :: API and Implementation                              [war]
[INFO] DSpace REST :: Local Customizations                                [war]
[INFO] DSpace SWORD                                                       [war]
[INFO] DSpace SWORD :: Local Customizations                               [war]
[INFO] DSpace SWORD v2                                                    [war]
[INFO] DSpace SWORD v2 :: Local Customizations                            [war]
[INFO] Apache Solr Webapp                                                 [war]
[INFO] DSpace SOLR :: Local Customizations                                [war]
[INFO] DSpace OAI-PMH                                                     [war]
[INFO] DSpace OAI-PMH :: Local Customizations                             [war]
[INFO] DSpace Assembly and Configuration                                  [pom]
[INFO] DSpace XML-UI Mirage2 Theme                                        [war]
[INFO] 
[INFO] ----------------------< org.dspace:dspace-parent >----------------------
[INFO] Building DSpace Parent Project 6.3                                [1/23]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for DSpace Parent Project 6.3:
[INFO] 
[INFO] DSpace Parent Project .............................. FAILURE [  0.211 s]
[INFO] DSpace Services Framework :: API and Implementation  SKIPPED
[INFO] DSpace Kernel :: API and Implementation ............ SKIPPED
[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:  1.680 s
[INFO] Finished at: 2021-11-17T12:58:23+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "package’’’". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/LifecyclePhaseNotFoundException
Buildfile: /home/dspace/dspace-6.3-src-release/dspace/target/dspace-installer/build.xml

prepare_configs:
    [mkdir] Created dir: /home/dspace/dspace-6.3-src-release/dspace/target/dspace-installer/config-temp
     [copy] Copying 159 files to /home/dspace/dspace-6.3-src-release/dspace/target/dspace-installer/config-temp
     [copy] Copying 1 file to /home/dspace/dspace-6.3-src-release/dspace/target/dspace-installer/config-temp
     [copy] Copying 16 files to /home/dspace/dspace-6.3-src-release/dspace/target/dspace-installer/config-temp

copy_configs_keep:

overwrite_configs:
   [delete] Deleting directory /home/dspace/dspace-6.3-src-release/dspace/target/dspace-installer/config-temp
     [echo] 
     [echo] ====================================================================
     [echo]  The DSpace configuration has been updated.
     [echo] 
     [echo]  During the upgrade process the build has attempted to overwrite the
     [echo]  previous configuration while preserving your previous changes in files
     [echo]  suffixed "*.old"
     [echo] 
     [echo]  To complete installation, you should do the following:
     [echo] 
     [echo]  * Check that you've properly merged any differences in the following files:
     [echo] 
     [echo]         
     [echo] 
     [echo] 
     [echo] 
     [echo]   * To properly merge your previous configuration files, it's
     [echo]     best to try to take the newer version and copy your
     [echo]     previous changes into it.
     [echo] ====================================================================
     [echo]         

prepare_solr_configs:
    [mkdir] Created dir: /home/dspace/dspace-6.3-src-release/dspace/target/dspace-installer/solr-config-temp
     [copy] Copying 52 files to /home/dspace/dspace-6.3-src-release/dspace/target/dspace-installer/solr-config-temp

copy_solr_configs_keep:

overwrite_solr_configs:
   [delete] Deleting directory /home/dspace/dspace-6.3-src-release/dspace/target/dspace-installer/solr-config-temp
     [echo] 
     [echo] ====================================================================
     [echo]  The DSpace configuration has been updated.
     [echo] 
     [echo]  During the upgrade process the build has attempted to overwrite the
     [echo]  previous configuration while preserving your previous changes in files
     [echo]  suffixed "*.old"
     [echo] 
     [echo]  To complete installation, you should do the following:
     [echo] 
     [echo]  * Check that you've properly merged any differences in the following files:
     [echo] 
     [echo]         
     [echo] 
     [echo] 
     [echo] 
     [echo]   * To properly merge your previous configuration files, it's
     [echo]     best to try to take the newer version and copy your
     [echo]     previous changes into it.
     [echo] ====================================================================
     [echo]         

update_configs:

check_geolite:

init_geolite:

update_geolite:
     [echo] Downloading: http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
      [get] Getting: http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
      [get] To: /home/dspace/dspace-install/config/GeoLite2-City.tar.gz
      [get] Error getting http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz to /home/dspace/dspace-install/config/GeoLite2-City.tar.gz
     [echo] 
     [echo] ====================================================================
     [echo] WARNING : FAILED TO DOWNLOAD GEOLITE DATABASE FILE
     [echo]           (Used for DSpace Solr Usage Statistics)
     [echo] 
     [echo] Underlying Error: java.net.UnknownHostException: geolite.maxmind.com
     [echo] 
     [echo] In order to use DSpace Solr Usage Statistics, you will need to
     [echo] manually re-run:
     [echo] 
     [echo] ant update_geolite
     [echo] 
     [echo] OR
     [echo] 
     [echo] You may manually install this file by following these steps:
     [echo] (1) Download the latest database archive from http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
     [echo] (2) Unpack it.'
     [echo] (3) Copy the file 'GeoLite2-City.mmdb' to '${usage-statistics.dbfile}'.
     [echo] 
     [echo] ====================================================================
     [echo]                 

update_code:
     [move] Moving 8 files to /home/dspace/dspace-install/bin.bak-20211117-125826
     [copy] Copying 8 files to /home/dspace/dspace-install/bin
     [move] Moving 180 files to /home/dspace/dspace-install/lib.bak-20211117-125826
     [copy] Copying 180 files to /home/dspace/dspace-install/lib
     [move] Moving 5 files to /home/dspace/dspace-install/etc.bak-20211117-125826
     [copy] Copying 5 files to /home/dspace/dspace-install/etc
     [echo] 
     [echo] ====================================================================
     [echo]  /home/dspace/dspace-install/bin was backed up to
     [echo] 
     [echo]  /home/dspace/dspace-install/bin.bak-20211117-125826
     [echo] 
     [echo]  /home/dspace/dspace-install/lib was backed up to
     [echo] 
     [echo]  /home/dspace/dspace-install/lib.bak-20211117-125826
     [echo] 
     [echo]  /home/dspace/dspace-install/etc was backed up to
     [echo] 
     [echo]  /home/dspace/dspace-install/etc.bak-20211117-125826
     [echo] 
     [echo]  Please review these directories and delete if no longer needed.
     [echo] ====================================================================
     [echo]         

test_database:
     [java] 2021-11-17 12:59:01,393 WARN  org.dspace.services.email.EmailServiceImpl @ Couldn't get an email session from environment:  Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
     [java] 
     [java] Attempting to connect to database
     [java] Connected successfully!
     [java] 
     [java] Database Type: postgres
     [java] Database URL: jdbc:postgresql://localhost:5432/dspace
     [java] Database Schema: public
     [java] Database Username: dspace
     [java] Database Software: PostgreSQL version 10.19 (Ubuntu 10.19-0ubuntu0.18.04.1)
     [java] Database Driver: PostgreSQL JDBC Driver version 42.2.1
     [java] PostgreSQL 'pgcrypto' extension installed/up-to-date? true (version=1.3)
     [java] 2021-11-17 12:59:03,374 WARN  org.dspace.services.sessions.SessionRequestServiceImpl @ Request interceptor (org.dspace.services.events.SystemEventService$EventRequestInterceptor@11d0e2d9) failed to execute on end (request-333-1637134142181): null

update_webapps:
     [move] Moving 3034 files to /home/dspace/dspace-install/webapps.bak-20211117-125826
     [move] Moved 302 empty directories to 1 empty directory under /home/dspace/dspace-install/webapps.bak-20211117-125826
     [echo] 
     [echo] ====================================================================
     [echo]  /home/dspace/dspace-install/webapps was backed up to
     [echo] 
     [echo]  /home/dspace/dspace-install/webapps.bak-20211117-125826
     [echo] 
     [echo]  Please review this directory and delete it if it's no longer needed.
     [echo] ====================================================================
     [echo]         

copy_webapps:
     [copy] Copying 3024 files to /home/dspace/dspace-install/webapps
     [copy] Copied 302 empty directories to 1 empty directory under /home/dspace/dspace-install/webapps
     [copy] Copying 10 files to /home/dspace/dspace-install/webapps

build_webapps_wars:
     [echo] 
     [echo] ====================================================================
     [echo]  Updated DSpace Web application directories are in the
     [echo]  '/home/dspace/dspace-install/webapps' directory.
     [echo] 
     [echo]  * Stop your Web servlet container (Tomcat, Jetty, Resin etc.)
     [echo] 
     [echo]  * If your Web servlet container already loads the DSpace
     [echo]    UI web applications from /home/dspace/dspace-install/webapps/, then you
     [echo]    can jump straight to restarting your Web servlet container
     [echo] 
     [echo]  * Otherwise, you will need to copy any web applications from
     [echo]    /home/dspace/dspace-install/webapps/ to the appropriate place for your servlet
     [echo]    container.  (e.g. '$CATALINA_HOME/webapps' for Tomcat)
     [echo] 
     [echo]    If you're using Tomcat, you should first delete any existing
     [echo]    DSpace directories in '$CATALINA_HOME/webapps/' (e.g. you would
     [echo]    delete an existing $CATALINA_HOME/webapps/dspace/ directory).
     [echo]    Otherwise, Tomcat may continue to use old code in that directory.
     [echo] 
     [echo]  * Start up your Web servlet container again.
     [echo] ====================================================================
     [echo]         

update_solr_indexes:
     [echo] Checking if any Solr indexes (/home/dspace/dspace-install/solr/*) need upgrading...
     [echo] Current version of Solr/Lucene: 4.10.2

check_solr_index:
     [echo] Checking if the Solr index at /home/dspace/dspace-install/solr/statistics/data/index/ is >= Solr 3.5.0
     [echo] The Solr index in /home/dspace/dspace-install/solr/statistics/data/index/ IS >= Solr 3.5.0. Looks good!

check_solr_index:
     [echo] Checking if the Solr index at /home/dspace/dspace-install/solr/statistics/data/index/ is >= Solr 4.10.2
     [echo] The Solr index in /home/dspace/dspace-install/solr/statistics/data/index/ IS >= Solr 4.10.2. Looks good!

check_solr_index:
     [echo] Checking if the Solr index at /home/dspace/dspace-install/solr/search/data/index/ is >= Solr 3.5.0
     [echo] The Solr index in /home/dspace/dspace-install/solr/search/data/index/ IS >= Solr 3.5.0. Looks good!

check_solr_index:
     [echo] Checking if the Solr index at /home/dspace/dspace-install/solr/search/data/index/ is >= Solr 4.10.2
     [echo] The Solr index in /home/dspace/dspace-install/solr/search/data/index/ IS >= Solr 4.10.2. Looks good!

check_solr_index:
     [echo] Checking if the Solr index at /home/dspace/dspace-install/solr/oai/data/index/ is >= Solr 3.5.0
     [echo] The Solr index in /home/dspace/dspace-install/solr/oai/data/index/ IS >= Solr 3.5.0. Looks good!

check_solr_index:
     [echo] Checking if the Solr index at /home/dspace/dspace-install/solr/oai/data/index/ is >= Solr 4.10.2
     [echo] The Solr index in /home/dspace/dspace-install/solr/oai/data/index/ IS >= Solr 4.10.2. Looks good!
     [echo] Cleanup any downloaded lucene-core-*.jar files. We don't need them anymore.

update:

BUILD SUCCESSFUL
Total time: 1 minute 24 seconds
dspace@libgmrc-260-a040il:~$ sudo $HOME/dspace-install/bin/dspace test-email

About to send test email:
 - To: dspace-help@myu.edu
 - Subject: DSpace test email
 - Server: smtp.example.com

Error sending email:
 - Error: javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Unknown SMTP host: smtp.example.com (java.net.UnknownHostException: smtp.example.com))

Please see the DSpace documentation for assistance.

17-11-21, 12:38 p.m. SAN2020

Login to add comment


The following commands are wrongly used in the terminal. 
sudo service tomcat8 stop
mvn -U clean package

Extra quote(') characters are added at the end of the commands. 
Remove the quote characters and re-run the commands.
18-11-21, 10:05 a.m. pankajap@cse.iitb.ac.in


Log-in to answer to this question.