You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Ilyevsky, Leonid (Equity Trading)" <Le...@ml.com> on 2005/05/19 15:59:57 UTC

M2 alppha-2 reports failure because of compiler warnings

I believe in alpha-1 release this was not a problem. Now maven says
"BUILD FAILURE" but compiler gives only warnings, not errors.
Maybe now I have to set some attribute to ignore warnings?

Everything is fine when I fix the code to avoid warnings. See log below.

lilyevsk@ejecxapeqd02 /home/lilyevsk/workspace/projects/pt_EDtech $ m2
deploy
[INFO]
------------------------------------------------------------------------
----
[INFO] Building pt:pt_EDtech:jar:1.0
[INFO]
------------------------------------------------------------------------
----
[INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local
repository
[INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from
local repository
[INFO] maven-surefire-plugin: resolved to version 2.0-alpha-2 from local
repository
[INFO] maven-install-plugin: resolved to version 2.0-alpha-2 from local
repository
[INFO] maven-deploy-plugin: resolved to version 2.0-alpha-2 from local
repository
[INFO] [resources:resources]
[INFO] [compiler:compile]
Compiling 428 source files to
/home/lilyevsk/workspace/projects/pt_EDtech/target/classes
[INFO]
------------------------------------------------------------------------
----
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
----
[INFO] Reason: Compilation failure
[INFO]
------------------------------------------------------------------------
----
[INFO]
/home/lilyevsk/workspace/projects/pt_EDtech/src/pt/EDtech/concurrent/Sem
aphoreControlledChannel.java:[71,-1]  warning: non-varargs call of
varargs method with inexact argument type for last parameter;
/home/lilyevsk/workspace/projects/pt_EDtech/src/pt/EDtech/concurrent/Sem
aphoreControlledChannel.java:[73,-1]  warning: non-varargs call of
varargs method with inexact argument type for last parameter;
/home/lilyevsk/workspace/projects/pt_EDtech/src/pt/EDtech/rules/Rule.jav
a:[146,-1]  warning: non-varargs call of varargs method with inexact
argument type for last parameter;
/home/lilyevsk/workspace/projects/pt_EDtech/src/pt/EDtech/rules/Rule.jav
a:[194,-1]  warning: non-varargs call of varargs method with inexact
argument type for last parameter;
 
[INFO]
------------------------------------------------------------------------
----
[INFO] Total time: 3 minutes 4 seconds
[INFO] Finished at: Thu May 19 09:51:56 EDT 2005
[INFO] Final Memory: 6M/132M
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail.     http://www.ml.com/email_terms/
--------------------------------------------------------

Re: M2 alppha-2 reports failure because of compiler warnings

Posted by Brett Porter <br...@gmail.com>.
Ok, is a bug to be fixed. You can work around it by declaring
<source>1.4</source> to the compiler plugin I think.

- Brett

On 5/19/05, Ilyevsky, Leonid (Equity Trading) <Le...@ml.com> wrote:
> I believe in alpha-1 release this was not a problem. Now maven says
> "BUILD FAILURE" but compiler gives only warnings, not errors.
> Maybe now I have to set some attribute to ignore warnings?
> 
> Everything is fine when I fix the code to avoid warnings. See log below.
> 
> lilyevsk@ejecxapeqd02 /home/lilyevsk/workspace/projects/pt_EDtech $ m2
> deploy
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] Building pt:pt_EDtech:jar:1.0
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local
> repository
> [INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from
> local repository
> [INFO] maven-surefire-plugin: resolved to version 2.0-alpha-2 from local
> repository
> [INFO] maven-install-plugin: resolved to version 2.0-alpha-2 from local
> repository
> [INFO] maven-deploy-plugin: resolved to version 2.0-alpha-2 from local
> repository
> [INFO] [resources:resources]
> [INFO] [compiler:compile]
> Compiling 428 source files to
> /home/lilyevsk/workspace/projects/pt_EDtech/target/classes
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] Reason: Compilation failure
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO]
> /home/lilyevsk/workspace/projects/pt_EDtech/src/pt/EDtech/concurrent/Sem
> aphoreControlledChannel.java:[71,-1]  warning: non-varargs call of
> varargs method with inexact argument type for last parameter;
> /home/lilyevsk/workspace/projects/pt_EDtech/src/pt/EDtech/concurrent/Sem
> aphoreControlledChannel.java:[73,-1]  warning: non-varargs call of
> varargs method with inexact argument type for last parameter;
> /home/lilyevsk/workspace/projects/pt_EDtech/src/pt/EDtech/rules/Rule.jav
> a:[146,-1]  warning: non-varargs call of varargs method with inexact
> argument type for last parameter;
> /home/lilyevsk/workspace/projects/pt_EDtech/src/pt/EDtech/rules/Rule.jav
> a:[194,-1]  warning: non-varargs call of varargs method with inexact
> argument type for last parameter;
> 
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] Total time: 3 minutes 4 seconds
> [INFO] Finished at: Thu May 19 09:51:56 EDT 2005
> [INFO] Final Memory: 6M/132M
> --------------------------------------------------------
> 
> If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail.     http://www.ml.com/email_terms/
> --------------------------------------------------------
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org