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:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
