There are some bugs in the test cases if running under *nix
The reason is the shortening of the long time value to seconds for some file systems.
If you set a long time of actual value
to a file and afterwards read the lastModificationDate, you'll only get
So here are 2 failure situations:
1.) For some test cases you simply have to extend the time-offset from 222 to 2222:
If you have an actual time value of
which will be truncated by the file system to
which is lower then the original value! -> assert will fail
adding 2222 (bit over 2 seconds) will help.
2.) As i explained above, some time values have to be truncate to seconds:
.) TestCopyDependenciesMojo.java line 523
assertEquals( time/1000, copiedFile.lastModified()/1000 );
.) TestCopyDependenciesMojo.java line 488 and 550
Thread.sleep( 1001 ); // sleep a bit more than a second...
at least it works on Linux this way. Please retest under Windoof