You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Hogeweg, Erwin (GE Infrastructure)" <Er...@ge.com> on 2005/08/11 16:44:57 UTC
M2 compile fails on compiler warnings
All,
I have no idea if this is an other stupid newbie statement, but this doesn't seem correct. Although there are only compiler warnings, M2 seems to assume that the compilation goal failed.
B.T.W. is there a way to specify the compiler "nowarn" flag? I didn't see it in the compiler parameters.
[INFO] [compiler:compile]
Compiling 632 source files to D:\tmp\myProj\media\target\classes
[INFO] ----------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ----------------------------------------------------------------------------
[INFO] Reason: Compilation failure
[INFO] ----------------------------------------------------------------------------
[INFO] no more tokens - could not parse error message: D:\tmp\myProj\media\server\SomeClass.java:28: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.5 to use 'enum' as a keyword)
oper.setStyle(org.apache.axis.enum.Style.WRAPPED);
^
no more tokens - could not parse error message: D:\tmp\myProj\media\server\SomeClass.java:29: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.5 to use 'enum' as a keyword)
oper.setUse(org.apache.axis.enum.Use.LITERAL);
^
Thanks again,
Erwin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: M2 compile fails on compiler warnings
Posted by Kenney Westerhof <fo...@neonics.com>.
On Thu, 11 Aug 2005, Hogeweg, Erwin (GE Infrastructure) wrote:
This is fixed in svn, so you'll either have to bootstrap or wait for
beta-1. It also has a 'nowarn' configuration setting.
-- Kenney
> All,
>
> I have no idea if this is an other stupid newbie statement, but this doesn't seem correct. Although there are only compiler warnings, M2 seems to assume that the compilation goal failed.
>
> B.T.W. is there a way to specify the compiler "nowarn" flag? I didn't see it in the compiler parameters.
>
> [INFO] [compiler:compile]
> Compiling 632 source files to D:\tmp\myProj\media\target\classes
> [INFO] ----------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ----------------------------------------------------------------------------
> [INFO] Reason: Compilation failure
> [INFO] ----------------------------------------------------------------------------
> [INFO] no more tokens - could not parse error message: D:\tmp\myProj\media\server\SomeClass.java:28: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.5 to use 'enum' as a keyword)
> oper.setStyle(org.apache.axis.enum.Style.WRAPPED);
> ^
>
> no more tokens - could not parse error message: D:\tmp\myProj\media\server\SomeClass.java:29: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.5 to use 'enum' as a keyword)
> oper.setUse(org.apache.axis.enum.Use.LITERAL);
> ^
>
> Thanks again,
>
> Erwin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org