This won't work very well in the IDEs. For example, Eclipse does not allow to specify different compiler settings per-source folder (i.e. main code vs. tests). So, I would advise against encouraging such feature. Besides users can still use older junit versions that work on 1.4, or they could move tests into a separate project.
regards, Eugene Oleg Gusakov wrote: > > One of the users requested a separate source/target configuration for > test compiler for the reason of running junit4 tests and yet being java > 1.4 in the main classes. > > It's a trivial change in the compiler plugin, but I decided to ask here > before changing it. > > The proposed change - add two configuration parameters: > > <plugin> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <testSource>1.5</testSource> > <testTarget>1.5</testTarget> > </configuration> > </plugin> > > Please let me know if it breaks anything. Please also indicate if you > need more separation (like memory, etc)? > -- View this message in context: http://www.nabble.com/compiler-plugin%3A-separate-test-compiler-configuration-tp20058021p20058447.html Sent from the Maven Developers mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
