You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Hervé Guidetti <He...@linkvest.com> on 2004/11/08 15:37:13 UTC

RE : Compilation doesn't generate a compilation error

Hi, 
 
Ok. You should be right. I effectively use Eclipse in parallel. 
I will try and let you know. 
 
Thanks a lot. 
Hervé
 

	-------- Message d'origine-------- 
	De: Jean-Marc Lavoie [mailto:jmlavoie@trisotech.com] 
	Date: lun. 08.11.2004 15:35 
	À: Maven Users List 
	Cc: 
	Objet: RE: Compilation doesn't generate a compilation error
	
	


	I'm not 100% certain on that, but maybe it's Eclipse who generate those classes. I started getting thoses when we switch to Eclipse 3.0.1. Probably the generated .class is present and maven won't compile it again. Javac do not use the same taget folder, so it won't see the .class file and try to compile it again. Do a maven clean and it should be OK.
	
	Regards
	Jean-Marc
	
	
	-----Original Message-----
	From: Brett Porter [mailto:brett.porter@gmail.com]
	Sent: Friday, November 05, 2004 6:33 PM
	To: Maven Users List
	Subject: Re: Compilation doesn't generate a compilation error
	
	that's odd. Can you file this in JIRA, then someone will try to reproduce it.
	
	
	On Fri, 5 Nov 2004 10:59:15 +0100, Hervé Guidetti <he...@linkvest.com> wrote:
	> Hi all,
	>
	> I am a newbee with Maven. I just have tested it.
	> I have created a little "HelloWorld" class.  I have written a wrong code on purpose.
	>
	> public class HelloWorld
	> {
	>
	>  public void hello ()
	>  {
	>   System.out.println2("Hello World !");  }
	>
	>  public static void main(String[] args) {
	>   new HelloWorld().hello();
	>  }
	> }
	>
	> When I compile it using "javac *.java", the compilator generate a compilation error.
	> If I use maven java:compile, it build successfuly.
	> I have decompiled the class and the generated method hello() is :
	>
	> public void hello(){
	> throw new Error("Unresolved compilation problem: \n\tThe method
	> println2(String) is undefined for the type PrintStream\n"); }
	>
	> I found that dangerous not to have a compilation error.
	> Is that normal ?
	>
	> Thanks for your help.
	> Hervé
	>
	> P.S : I using Maven 1.0, jdk 1.4.2_05 on WinXP.
	>
	> ---------------------------------------------------------------------
	> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
	> For additional commands, e-mail: users-help@maven.apache.org
	>
	>
	
	---------------------------------------------------------------------
	To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
	For additional commands, e-mail: users-help@maven.apache.org
	
	
	---------------------------------------------------------------------
	To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
	For additional commands, e-mail: users-help@maven.apache.org