With Maven 2.0.x it is not possible to configure the compiler plugin separately for the test-compile and compile phases. (Confirmed with 2.0.8)
This is expected to change with Maven 2.1.