Surfing Scotsman (1) [Avatar] Offline
#1
Apologies in advance, as I am new to Java etc. Machine is all set up, Maven installed and set up however when I execute mvn clean package I am getting the following error. I tried this on both Chapters 2 amd 3 and it is the same error.

Grateful for any help.

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 14.574 sec <<< FAILURE!
verifyProperValuesAreEmittedByEachBolt(stormapplied.heatmap.topology.TopologyTest) Time elapsed: 14.449 sec <<< ERROR!
java.io.IOException: Unable to delete file: C:UsersGraemeAppDataLocalTemp34ab670d-e821-4456-8db7-aa3ac643015eversion-2log.1
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1390)
al.krinker (15) [Avatar] Offline
#2
Re: Tests Failing for Chapters 2 and 3
Here is your problem:
java.io.IOException: Unable to delete file: C:UsersGraemeAppDataLocalTemp34ab670d-e821-4456-8db7-aa3ac643015eversion-2log.1

Maven cant delete this file on a clean up and hence the error. Make sure that this file is not open somewhere... do the deletion manually if you can and run mvn clean build again.
al.krinker (15) [Avatar] Offline
#3
Re: Tests Failing for Chapters 2 and 3
You can also try -Dmaven.test.skip=true to skip tests altogether.