You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nafter <Hd...@allshare.nl> on 2009/07/18 19:01:41 UTC

testOutputDirectory is cleared when using a clean goal

I have a pom whichs builds a WAR file and finally runs a lot of JUnit tests.
This was always triggered like this:
-e install -Dload_properties -Drun_dummy_test -Drebuild_war -Drun_tests

Now I want to add clean to this command, so now it's like this:
-e clean install -Dload_properties -Drun_dummy_test -Drebuild_war
-Drun_tests

As a result of the clean the testOutputDirectory, which was populated with
all kind of JUnit classes by one of the modules, is now being cleared in the
latest project 'PV_Web'. This latest project is the one at which point the
JUnit test should run. 
But because of the clean goal, this testOutputDirectory is cleared. So there
is nothing to test!

Is there a way to avoid this directory from be cleared out, but still have
the clean option in my command?
-- 
View this message in context: http://www.nabble.com/testOutputDirectory-is-cleared-when-using-a-clean-goal-tp24549829p24549829.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org