-
Notifications
You must be signed in to change notification settings - Fork 3
Developer Notes
- Milton.io docs - here
- mounting webdav on linux with davfs here
- using cadaver - [here] (https://www.digitalocean.com/community/tutorials/how-to-configure-webdav-access-with-apache-on-ubuntu-12-04)
The process of switching between milton community and milton enterprise is somewhat automated using maven.
For community edition, just build using mvn install
For enterprise (if you need WebDav level2 for Mac finder or Windows Explorer support)...
Go to http://milton.io/about/license/index.html and get a trial enterprise license, or purchase a license. Put the two files--milton.license.properties and milton.license.sig--into a location on the build machine
Copy the profile information for the Maven settings.xml file as shown in the example settings file which can be found here. It will look like this
<?xml version="1.0" encoding="UTF-8"?>
<!-- Settings for building, choose a profile, either community setup or enterprise
setup. Enterprise setup will copy in the keys from the specified location
and utilize the milton enterprise server -->
<settings>
<profiles>
<profile>
<id>irodsWebdavCe</id>
<properties>
<milton.level>milton-server-ce</milton.level>
</properties>
</profile>
<profile>
<id>irodsWebdavEnterprise</id>
<properties>
<milton.level>milton-server-ent</milton.level>
<milton.source.path>/home/test/milton</milton.source.path>
<milton.copy.license>true</milton.copy.license>
</properties>
</profile>
</profile>
</profiles>
<activeProfiles>
<activeProfile>irodsWebdavCe</activeProfile>
</activeProfiles>
</settings>
And you can activate the irodsWebdavEnterprise profile, giving the location where you put the webdav artifacts.
Run the mvn install command and you will get a war file properly configured
1: Clone the irods-webdav github repo. "git clone https://github.com/DICE-UNC/irods-webdav"
2: Update irods-webdav/src/main/resources/miltonContext.xml a: Set host, zone, port, authScheme, defaultStorageResource to your iRODS repo b: Change class="io.milton.config.HttpManagerBuilder" to class="io.milton.ent.config.HttpManagerBuilderEnt" c: Change a resource.factory constructor-arg from "/test1/home/test1" to a path on your iRODS repo d: Change property context-path from "irods-webdav" to "" 3: Update irods-webdav/pom.xml a: Change "milton-server-ce" to "milton-server-ent"
4: Go to http://milton.io/about/license/index.html and get a trial enterprise license. Put the two files--milton.license.properties and milton.license.sig--in irods-webdav/src/main/resources.
5: run irods-webdav/mvn package -DskipTests
6: Move irods-webdav/target/irods-webdav-0.0.1-SNAPSHOT.war to a Tomcat webapps directory (I usually also change the name to ROOT.war.
7: Connect!