Build backend without internet

25 views
Skip to first unread message

Salony Permanand

unread,
May 27, 2024, 4:14:33 AM5/27/24
to DSpace Technical Support
Hello All,

I need a help for building backend of Dspace without internet

I am using DSpace-7.6 and due to security reasons mvn and ant fresh is not allowed in my system

I tried to build the dspace in another system and tried to copy /dspace/webapps folder from that location to my system and restart all services but it not worked

Can anyone help regarding that

Any help is highly appreciated

Thanks and Regards

Salony Permanand

DSpace Technical Support

unread,
May 31, 2024, 11:24:30 AM5/31/24
to DSpace Technical Support
Hi Salony,

DSpace does require the internet to build.  However, it should be possible to build it on a separate machine and copy the results over to the machine where you wish to install DSpace.

To do this, you'd need to copy over **more than** just the /dspace/webapps folder.   Instead, you'd need to copy over the **entire DSpace installation directory** to the new machine.

So, at a basic level, you'd follow the Backend Installation Instructions, but with a few modifications:

On the machine that has internet, you will need to unpack the software and run the build
  1. Download DSpace code.  Make sure Java, Maven & Ant are installed
  2. Build via "mvn package"
  3. Perform a temporary installation using "ant fresh_install".  Make sure you know which folder this install is writing into. By default, it will probably write to a folder named "/dspace"

On the machine which does NOT have internet:
  1. Make sure Java, Tomcat, Postgres and Solr are installed (or available on another local machine).  Make sure this machine has the same version of Java as the other machine.
  2. Copy the *entire* installation folder from the other machine to this one.  This means copy the entire "/dspace" folder and all directories.
  3. Continue the rest of the installation process by initializing your DSpace configuration, the Database, Solr, and deploying to Tomcat.  Basically follow the Installation Instructions as normal, but skip the steps related to "mvn" and "ant" (as you already did those on the other machine).
I believe those instructions will work.  But, it is always possible I've forgotten a step.  So, if you run into issues, let us know on this list.

Tim
Reply all
Reply to author
Forward
0 new messages