opitzconsulting / orcas

Oracle schema management framework
http://opitzconsulting.github.io/orcas
Apache License 2.0
26 stars 14 forks source link

use orcas offline #52

Closed llsand closed 8 years ago

llsand commented 8 years ago

Orcas requires an internet connection for updating a schema. It needs this connection for resolving maven-dependencies. It should be possible to pre-build orcas, so that the update-run does no longer depends on an active internet connection.

stefanscheidt commented 8 years ago

This should only be neccessary the first time the schema update runs, right? You could prepare for going offline via mvn dependency:go-offline, see https://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html

llsand commented 8 years ago

This should only be neccessary the first time the schema update runs, right?

Yes

You could prepare for going offline via mvn dependency:go-offline, see https://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html

It is important, that an orcas installation can run without ever having an internet connection. The idea was to run orcas on an machine with internet connection an create a file that enbables another orcas installation on a dirfferent machine to run orcas offline.

stefanscheidt commented 8 years ago

It's possible to add a file base repository to the list of repositories maven queries to resolve dependencies, e.g. like so in your pom.xml:

<repositories>
    <!--other repositories if any-->
    <repository>
        <id>project.local</id>
        <name>project</name>
        <url>file:${project.basedir}/repo</url>
    </repository>
</repositories>

So probably you can

  1. make a complete build on a system with an empty local maven repo (mv ~/.m2/repository ~/.m2/repo.bak) to populate the local repo with the dependencies needed to build the project
  2. copy the local maven repo to ${project.basedir}/repo
  3. add this folder as a file based repo to your pom as shown above
  4. restore you original local repo if needed