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.
On the machine that has internet, you will need to unpack the software and run the build
- Download DSpace code. Make sure Java, Maven & Ant are installed
- Build via "mvn package"
- 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:
- 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.
- Copy the *entire* installation folder from the other machine to this one. This means copy the entire "/dspace" folder and all directories.
- 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