Join GitHub today
Java 8 test compilation #430
Using wisdom:run, it doesn't appear to be possible to run tests using Java 8.
I have a unit test with a lambda expression in the test code. When I do wisdom:run, it won't compile since the -source for the compiler is 1.7.
So, I added the following to my pom:
<build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.2</version> <configuration> <source>1.8</source> <target>1.8</target> <testSource>1.8</testSource> <testTarget>1.8</testTarget> </configuration> </plugin>
The error then becomes:
Using the properties of the POM doesn't work either like shown here.
This was referenced
Feb 9, 2015
Here is a turn around: