C:\openpnp\openpnp>mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building openpnp-gui 0.0.1-alpha-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ openpnp-gui ---
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: C:\openpnp\openpnp
[INFO] Storing buildNumber: 9deb48 at timestamp: 1468127493888
[INFO] Storing buildScmBranch: master
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ openpnp-gui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 52 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ openpnp-gui ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ openpnp-gui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ openpnp-gui ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ openpnp-gui ---
[INFO] Surefire report directory: C:\openpnp\openpnp\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running BasicJobTest
Configuration directory: C:\Users\JACOBC~1\AppData\Local\Temp\1468127495369-0\.openpnp
22:11:37,202 setEnabled(true)
22:11:37,204 Start R1
22:11:37,206 moveTo(ReferenceNozzle, (-10.000000, 0.000000, 0.000000, 0.000000 mm), 1.0)
22:11:37,207 pick(ReferenceNozzle ReferenceNozzleTip)
22:11:37,207 Start R2
22:11:37,207 moveTo(ReferenceNozzle, (-20.000000, 0.000000, 0.000000, 0.000000 mm), 1.0)
22:11:37,208 pick(ReferenceNozzle ReferenceNozzleTip)
22:11:37,234 moveTo(ReferenceNozzle, (0.000000, 10.000000, 0.000000, 45.000000 mm), 1.0)
22:11:37,235 moveTo(ReferenceNozzle, (0.000000, 10.000000, 0.825500, 45.000000 mm), 1.0)
22:11:37,235 place(ReferenceNozzle ReferenceNozzleTip)
22:11:37,236 moveTo(ReferenceNozzle, (0.000000, 10.000000, 0.000000, 45.000000 mm), 1.0)
22:11:37,236 Finish R1
22:11:37,236 moveTo(ReferenceNozzle, (0.000000, 20.000000, 0.000000, 90.000000 mm), 1.0)
22:11:37,237 moveTo(ReferenceNozzle, (0.000000, 20.000000, 0.825500, 90.000000 mm), 1.0)
22:11:37,237 place(ReferenceNozzle ReferenceNozzleTip)
22:11:37,237 moveTo(ReferenceNozzle, (0.000000, 20.000000, 0.000000, 90.000000 mm), 1.0)
22:11:37,237 Finish R2
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.971 sec
Running EagleLoaderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.319 sec
Running OpenCvTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 sec
Running SampleJobTest
Configuration directory: C:\Users\JACOBC~1\AppData\Local\Temp\1468127497645-0\.openpnp
22:11:37,646 No packages.xml found in configuration directory, loading defaults.
22:11:37,653 No parts.xml found in configuration directory, loading defaults.
22:11:37,659 No machine.xml found in configuration directory, loading defaults.
22:11:37,683 Defaults were loaded. Saving to configuration directory.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.093 sec <<< FAILURE!
testSampleJob(SampleJobTest) Time elapsed: 0.092 sec <<< ERROR!
java.lang.ClassCastException: org.openpnp.machine.reference.driver.test.TestDriver cannot be cast to org.openpnp.machine.reference.driver.NullDriver
at SampleJobTest.testSampleJob(SampleJobTest.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Running Utils2DTest
test1
board: (5.000000, 15.000000, -8.000000, 0.000000 mm) 100mm
place: (55.000000, 5.000000, 0.000000, 0.000000 mm)
results (60.000000, 20.000000, -8.000000, 0.000000 mm)
test2
results (45.580602, 17.699407, -8.000000, 0.000000 mm)
test3
results (70.497539, 1.865309, -8.000000, 0.000000 mm)
test4
test5
results (69.142136, 12.071068, -8.000000, 0.000000 mm)
test6
board: (30.004000, 31.386000, -8.000000, 74.646000 mm) 100mm
place: (31.000000, 6.000000, 0.000000, 0.000000 mm)
results (32.426392, 62.868249, -8.000000, 74.646000 mm)
inverse: (31.000000, 6.000000, 0.000000, 0.000000 mm)
results (32.426392, 62.868249, -8.000000, 74.646000 mm)
test7
test8
board: (5.000000, 15.000000, -8.000000, 0.000000 mm) Width=100.0
place: (55.000000, 5.000000, 0.000000, 0.000000 mm)
results (50.000000, 20.000000, -8.000000, 0.000000 mm)
test9
results (35.580602, 17.699407, -8.000000, 0.000000 mm)
test10
results (60.497539, 1.865309, -8.000000, 0.000000 mm)
test11
test12
results (59.142136, 12.071068, -8.000000, 0.000000 mm)
test13
idealA (3.846353, 39.336512, 0.000000, 10.000000 mm)
idealB (58.296186, 18.474689, 0.000000, 10.000000 mm)
offset (10.000000, 10.000000, 0.000000, -3.000000 mm)
actualA (15.697304, 49.348462, 0.000000, 7.000000 mm)
actualB (68.980692, 25.665545, 0.000000, 7.000000 mm)
results (9.797509, 10.267162, 0.000000, -3.000000 mm)
results (9.797509, 10.267162, 0.000000, -3.000000 mm)
results (9.588165, 10.272644, 0.000000, -3.000000 mm)
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.061 sec
Running VisionUtilsTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Exception in thread "Thread-1" java.lang.RuntimeException: java.nio.file.AccessDeniedException: C:\Users\JACOBC~1\AppData\Local\Temp\440530640717678891\nu\pattern\opencv\windows\x86_64\opencv_java2411.dll
at nu.pattern.OpenCV$TemporaryDirectory.delete(OpenCV.java:146)
at nu.pattern.OpenCV$TemporaryDirectory$1.run(OpenCV.java:117)
Caused by: java.nio.file.AccessDeniedException: C:\Users\JACOBC~1\AppData\Local\Temp\440530640717678891\nu\pattern\opencv\windows\x86_64\opencv_java2411.dll
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at nu.pattern.OpenCV$TemporaryDirectory$2.visitFile(OpenCV.java:141)
at nu.pattern.OpenCV$TemporaryDirectory$2.visitFile(OpenCV.java:130)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at java.nio.file.Files.walkFileTree(Files.java:2742)
at nu.pattern.OpenCV$TemporaryDirectory.delete(OpenCV.java:130)
... 1 more
Results :
Tests in error:
testSampleJob(SampleJobTest): org.openpnp.machine.reference.driver.test.TestDriver cannot be cast to org.openpnp.machine.reference.driver.NullDriver
Tests run: 8, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.857 s
[INFO] Finished at: 2016-07-09T22:11:37-07:00
[INFO] Final Memory: 12M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project openpnp-gui: There are test failures.
[ERROR]
[ERROR] Please refer to C:\openpnp\openpnp\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
C:\openpnp\openpnp>
I'm using 64bit version of java on Windows 10... I've built in the past with the 32-bit jdk on Windows 7
C:\openpnp\openpnp>mvn --version
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T04:57:37-07:00)
Maven home: C:\openpnp\apache-maven-3.3.3\bin\..
Java version: 1.8.0_91, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_91\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"