[ http://jira.codehaus.org/browse/MDEP-22?page=comments#action_77152 ] mark struberg commented on MDEP-22: -----------------------------------
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 > 1160492034512 to a file and afterwards read the lastModificationDate, you'll only get > 1160492034000 So here are 2 failure situations: 1.) For some test cases you simply have to extend the time-offset from 222 to 2222: .) TestMarkerFileFilter.java .) TestDefaultMarkerFileHandler.java .) TestSourcesMarkerFileHandler.java If you have an actual time value of > 1160492034112 you'll get > 1160492034334 which will be truncated by the file system to > 1160492034000 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 ;) best regards, strub > copy of provided dependencies > ----------------------------- > > Key: MDEP-22 > URL: http://jira.codehaus.org/browse/MDEP-22 > Project: Maven 2.x Dependency Plugin > Issue Type: Wish > Environment: all > Reporter: Jerome CARRE > Assigned To: Brian Fox > Priority: Minor > Fix For: 2.0-alpha-1 > > > create an attribute to say "don't copy 'provided' dependencies", into > copy-dependencies goal. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira