Onno van der Straaten wrote:
I have been spending loads of time on the following javac problem. There is code that compiles with the following error:

warning: as of release 1.4, assert is a keyword, and may not be used as an
identifier

I try to solve the problem by providing the following options:

maven.compile.compileargs = -source 1.4 -target 1.4

Which results in following error message:
source release 1.4 requires target release 1.4


From http://maven.apache.org/reference/plugins/java/properties.html

maven.compile.source -  Provide source compatibility with a specific release
Corresponds to the source attribute for the ant javac task.

maven.compile.target - Generate class files for a specific JVM version
Corresponds to the target attribute for the ant javac task. This value defaults
to 1.1 so that builds on JDK 1.4 or later stil work on earlier JVMs.


I think that should be what you need.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to