I have a project which must be compiled only with java 1.4. But I am planning to write some unit tests using mockito. I want a way to specify in pom so that src/main/java
compiles with jdk 1.4
but src/test/java
compiles with jdk 1.5
.
Is there a way to do this? If yes, what pom changes should be made?
Thanks for your time!!!