mcicolella/freedomotic — pull request #3 by sarxos (2014-10-14 09:59:29+00:00)
Title: Fix maven build in camera-motion device plugin

This fixes bug I dropped in my last commit and adds maven dependency + repository. I verified it on my PC and it builds well:

```plain
sarxos@sarxos-comp:~/workspace/freedomotic/plugins/devices/camera-motion$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building camera-motion 3.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ camera-motion ---
[INFO] Deleting /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ camera-motion ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ camera-motion ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ camera-motion ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/classes
[WARNING] /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/src/main/java/com/freedomotic/plugins/devices/cameramotion/CameraMotion.java: /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/src/main/java/com/freedomotic/plugins/devices/cameramotion/CameraMotion.java uses or overrides a deprecated API.
[WARNING] /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/src/main/java/com/freedomotic/plugins/devices/cameramotion/CameraMotion.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ camera-motion ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ camera-motion ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ camera-motion ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-resources) @ camera-motion ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 4 resources to ../camera-motion
[INFO] Copying 2 resources to ../camera-motion
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ camera-motion ---
[INFO] Building jar: /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/camera-motion-3.0.jar
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy-dependencies) @ camera-motion ---
[INFO] Copying webcam-capture-0.3.11-SNAPSHOT.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/lib/webcam-capture-0.3.11-SNAPSHOT.jar
[INFO] Copying jcl-over-slf4j-1.7.2.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/lib/jcl-over-slf4j-1.7.2.jar
[INFO] Copying hamcrest-core-1.3.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/lib/hamcrest-core-1.3.jar
[INFO] Copying slf4j-api-1.6.5.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/lib/slf4j-api-1.6.5.jar
[INFO] Copying httpclient-4.3.2.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/lib/httpclient-4.3.2.jar
[INFO] Copying httpcore-4.3.1.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/lib/httpcore-4.3.1.jar
[INFO] Copying webcam-capture-driver-ipcam-0.3.11-SNAPSHOT.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/lib/webcam-capture-driver-ipcam-0.3.11-SNAPSHOT.jar
[INFO] Copying jul-to-slf4j-1.6.5.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/lib/jul-to-slf4j-1.6.5.jar
[INFO] Copying bridj-0.6.3-SNAPSHOT.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/lib/bridj-0.6.3-SNAPSHOT.jar
[INFO] Copying junit-4.11.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/lib/junit-4.11.jar
[INFO] Copying commons-logging-1.1.3.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/lib/commons-logging-1.1.3.jar
[INFO] Copying commons-codec-1.6.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/lib/commons-codec-1.6.jar
[INFO] Copying httpmime-4.2.3.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/lib/httpmime-4.2.3.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ camera-motion ---
[INFO] Installing /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/camera-motion/camera-motion-3.0.jar to /home/sarxos/.m2/repository/com/freedomotic/camera-motion/3.0/camera-motion-3.0.jar
[INFO] Installing /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/pom.xml to /home/sarxos/.m2/repository/com/freedomotic/camera-motion/3.0/camera-motion-3.0.pom
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (default) @ camera-motion ---
[INFO] Copying webcam-capture-0.3.11-SNAPSHOT.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/lib/webcam-capture-0.3.11-SNAPSHOT.jar
[INFO] Copying jcl-over-slf4j-1.7.2.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/lib/jcl-over-slf4j-1.7.2.jar
[INFO] Copying hamcrest-core-1.3.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/lib/hamcrest-core-1.3.jar
[INFO] Copying slf4j-api-1.6.5.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/lib/slf4j-api-1.6.5.jar
[INFO] Copying httpclient-4.3.2.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/lib/httpclient-4.3.2.jar
[INFO] Copying httpcore-4.3.1.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/lib/httpcore-4.3.1.jar
[INFO] Copying webcam-capture-driver-ipcam-0.3.11-SNAPSHOT.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/lib/webcam-capture-driver-ipcam-0.3.11-SNAPSHOT.jar
[INFO] Copying jul-to-slf4j-1.6.5.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/lib/jul-to-slf4j-1.6.5.jar
[INFO] Copying bridj-0.6.3-SNAPSHOT.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/lib/bridj-0.6.3-SNAPSHOT.jar
[INFO] Copying junit-4.11.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/lib/junit-4.11.jar
[INFO] Copying commons-logging-1.1.3.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/lib/commons-logging-1.1.3.jar
[INFO] Copying commons-codec-1.6.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/lib/commons-codec-1.6.jar
[INFO] Copying httpmime-4.2.3.jar to /home/sarxos/workspace/freedomotic/plugins/devices/camera-motion/target/lib/httpmime-4.2.3.jar
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (id.install) @ camera-motion ---
[INFO] Executing tasks

main:
[echo] Phase install goal run
[copydir] DEPRECATED - The copydir task is deprecated. Use copy instead.
[copydir] Copying 20 files to /home/sarxos/workspace/freedomotic/framework/freedomotic-core/plugins/devices/camera-motion
[INFO] Executed tasks
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.877 s
[INFO] Finished at: 2014-10-14T11:59:34+02:00
[INFO] Final Memory: 28M/264M
[INFO] ------------------------------------------------------------------------
```