You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Onno van der Straaten <on...@logicacmg.com> on 2004/06/22 18:10:16 UTC
Javac: source release 1.4 requires target release 1.4
Hi all,
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
I have been working on this problem for more than a few hours to no avail.
If I don't find a solution we will be using something else than Maven, which
I regret so any help will be greatly appreciated.
Kind regards,
Onno
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Javac: source release 1.4 requires target release 1.4
Posted by Eric Giguere <er...@videotron.ca>.
Hello
Try these property settings:
maven.compile.deprecation=on
*maven.compile.target=1.4*
maven.compile.debug=off
maven.compile.optimize=off
Target will probably be the one interesting for you.
You will find the documentation for the java plugin properties there:
http://maven.apache.org/reference/plugins/java/properties.html
Hope it helps
Eric.
Onno van der Straaten wrote:
>Hi all,
>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
>
>I have been working on this problem for more than a few hours to no avail.
>If I don't find a solution we will be using something else than Maven, which
>I regret so any help will be greatly appreciated.
>
>Kind regards,
>Onno
>
>
>This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
Re: Javac: source release 1.4 requires target release 1.4
Posted by Brill Pappin <br...@stabilia.com>.
Sorry about the multiple posts folks, my local mail system was
indicating an error but the mail was going out anyway.
- Brill Pappin
Brill Pappin wrote:
> Right idea, wrong options, try:
>
> maven.compile.target=1.4
> maven.compile.source=1.4
>
> - Brill Pappin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Javac: source release 1.4 requires target release 1.4
Posted by Brill Pappin <br...@stabilia.com>.
Right idea, wrong options, try:
maven.compile.target=1.4
maven.compile.source=1.4
- Brill Pappin
Onno van der Straaten wrote:
>Hi all,
>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
>
>I have been working on this problem for more than a few hours to no avail.
>If I don't find a solution we will be using something else than Maven, which
>I regret so any help will be greatly appreciated.
>
>Kind regards,
>Onno
>
>
>This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
"Any sufficiently advanced magic is indistinguishable from technology."
- Arthur C Anticlarke
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Javac: source release 1.4 requires target release 1.4
Posted by Brill Pappin <br...@stabilia.com>.
Right idea, wrong options, try:
maven.compile.target=1.4
maven.compile.source=1.4
- Brill Pappin
Onno van der Straaten wrote:
>Hi all,
>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
>
>I have been working on this problem for more than a few hours to no avail.
>If I don't find a solution we will be using something else than Maven, which
>I regret so any help will be greatly appreciated.
>
>Kind regards,
>Onno
>
>
>This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
"Any sufficiently advanced magic is indistinguishable from technology."
- Arthur C Anticlarke
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Javac: source release 1.4 requires target release 1.4
Posted by Brill Pappin <br...@stabilia.com>.
Right idea, wrong options, try:
maven.compile.target=1.4
maven.compile.source=1.4
- Brill Pappin
Onno van der Straaten wrote:
>Hi all,
>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
>
>I have been working on this problem for more than a few hours to no avail.
>If I don't find a solution we will be using something else than Maven, which
>I regret so any help will be greatly appreciated.
>
>Kind regards,
>Onno
>
>
>This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
"Any sufficiently advanced magic is indistinguishable from technology."
- Arthur C Anticlarke
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Javac: source release 1.4 requires target release 1.4
Posted by Brill Pappin <br...@stabilia.com>.
Right idea, wrong options, try:
maven.compile.target=1.4
maven.compile.source=1.4
- Brill Pappin
Onno van der Straaten wrote:
>Hi all,
>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
>
>I have been working on this problem for more than a few hours to no avail.
>If I don't find a solution we will be using something else than Maven, which
>I regret so any help will be greatly appreciated.
>
>Kind regards,
>Onno
>
>
>This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
"Any sufficiently advanced magic is indistinguishable from technology."
- Arthur C Anticlarke
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Javac: source release 1.4 requires target release 1.4
Posted by "matthew.hawthorne" <ma...@apache.org>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org