How do I compile a JUnit test with Maven that uses the Java Compiler API?

Without any special (compiler) dependency the Java Compiler API works for me (as it's part of the JDK).

Without any special (compiler) dependency the Java Compiler API works for me (as it's part of the JDK). You can set the target VM version with the options parameter of getTask, for example: final List options = new ArrayList(); options. Add("-target"); options.

Add("1.3"); options. Add("-source"); options. Add("1.3").

Taking into account that Maven doesn't work with a JRE, you're right, of course. Silly me. – Aaron Digulla Oct 13 '11 at 7:41.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions