# Possible to build from source without external repositories?

**URL:** <https://ask.openrouteservice.org/t/possible-to-build-from-source-without-external-repositories/4277>\
**Category:** openrouteservice\
**Created:** [October 17, 2022, 6:37pm UTC](https://ask.openrouteservice.org/t/possible-to-build-from-source-without-external-repositories/4277 "2022-10-17T18:37:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CCS](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/ccs/32/1902_2.png) [@CCS](https://ask.openrouteservice.org/u/CCS)\
**Post date:** [October 17, 2022, 6:37pm UTC](https://ask.openrouteservice.org/t/possible-to-build-from-source-without-external-repositories/4277/1 "2022-10-17T18:37:46Z")

</div>

Hello,

Is it possible to build openrouteservice from source on ubuntu without access to the external repositories specified in the pom.xml file ([JFrog](https://repo.heigit.org/artifactory/main) and [Repository - Nexus Repository Manager](https://repo.osgeo.org/repository/release/) I think)? One potential route could be to download the required artefacts and manually SCP these across to the server but (if this would work) how would I need to edit the pom.xml file to reflect this?

For context, I am in an environment where using Docker isn’t possible and the available ubuntu server does not have an open outbound SSL port. The instructions to build from source are very helpful but fail in my context at the mvn package line as I cannot connect to these repositories.

Thank you  
Tom

---

<div class="post-metadata">

**Author:** ![jschnell](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jschnell/32/971_2.png) [@jschnell](https://ask.openrouteservice.org/u/jschnell)\
**Post date:** [October 18, 2022, 2:11pm UTC](https://ask.openrouteservice.org/t/possible-to-build-from-source-without-external-repositories/4277/2 "2022-10-18T14:11:08Z")

</div>

Hey,

there are two approaches that we could think of, but haven’t tested any.  
The first would be to build the ORS on a machine with internet access and copying the `.m2`-folder containing the maven packages.  
The second and apparently correct way would be to copy all the relevant `.jar`-files and use `mvn install:install-file` to install them.

Best regards

---

<div class="post-metadata">

**Author:** ![CCS](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/ccs/32/1902_2.png) [@CCS](https://ask.openrouteservice.org/u/CCS)\
**Post date:** [October 19, 2022, 8:44am UTC](https://ask.openrouteservice.org/t/possible-to-build-from-source-without-external-repositories/4277/3 "2022-10-19T08:44:58Z")

</div>

Thank you much appreciated. I will give these a go
