Companion code to go along with the blog post at http://www.samaxes.com/2012/10/comparing-device-description-repositories/.
DDR Compare uses the Apache Maven build system. Building DDR Compare requires you to have it installed.
Install W3C DDR Simple API Maven dependencies for DeviceMap into your local repository by executing the following script from inside the lib
folder:
install-libs.sh
for Linuxinstall-libs.bat
for Windows
Build the project:
mvn clean package
DDR Compare needs a Java EE application server to run. Follow these steps to deploy it to JBoss AS:
- Deploy the WAR file to your application server.
- Start your application server and point your browser to http://localhost:8080/ddr.
By default based on the POM file DeviceMap data will be retrieved from a public Maven repository (using ${devicemap.data.version}) and extracted to a folder ${devicemap.data.path} (pointing to /temp/devicemap-data/devicedata, on Windows that'll be relative to the system path, usually drive C:). If you need to use a different folder, e.g. because your user has restricted write access, please either manually adjust the POM or better pass those properties either on the "mvn" command line or through a Maven settings.xml file.