I have a JUnit test that tests that some files in a directory has been deleted.
The directory where the test does the deletion is in the target/test-classes/repository directory, and this directory is copied from the src/test/resources/repository directory by maven defaults. Running "mvn clean install" works fine. Running "mvn install" also works fine. However, in eclipse with m2e, the tests only run fine the first time after something has triggered resource regeneration. "Something to trigger resource regeneration" is typically editing a file. Is there a way to trigger resource generation from a JUnit test setup? Or would I be better off making sure the files are copied in the test setup? (ie. the simple, straightforward, solution) (it feels wrong to manually do the job that maven already does so well, and it also feels wrong to copy files were maven already copy the files, ie. do the work twice when running from the mvn command line) Thanks! - Steinar _______________________________________________ m2e-users mailing list m2e-users@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/m2e-users