Hello Subhash,
Thanks a lot it works. You have probably more experience than me with JUnit 4 and maven. I would ask you another question. I have written my test class as described in the cookbook (for 4.0) by Kent Beck, Erich Gamma on the JUnit web site but I have still to prefix all my testing method by the "test" keyword. Its like if the annotations were ignored. An idea?

Regards

Gianfranco OLDANI
Mob: +41787330350
Web: www.gfoldani.com



----Original Message Follows----
From: "Subhash Chandran" <[EMAIL PROTECTED]>
Reply-To: "Maven Users List" <[email protected]>
To: "Maven Users List" <[email protected]>
Subject: Re: Maven 2 and java 1.5 Annotations
Date: Mon, 20 Mar 2006 00:13:15 +0530

Your pom.xml:
<project ...>
...
<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
...
...

And verify that in ur PATH environment variable u have JDK 1.5 bin folder.
Also if JAVA_HOME is specified, it also should point to JDK1.5 directory.

Regards,
Subhash.


On 3/20/06, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I use maven 2 and it need to compile sources with annotations (JUnit 4.0
> annotations) and I get always this message:
>
> notations are not supported in -source 1.3
> (try -source 1.5 to enable annotations)
>     @Before public void setUp()
>
> I use JDK 1.5.0_04.
>
> Somebody can help? Thanks for help
>
> Gianfranco OLDANI
> Mob: +41787330350
> Web: www.gfoldani.com
>
> _________________________________________________________________
> Sélectionnez les meilleurs albums pour votre discothèque MP3 en ligne!
> http://sib1.od2.com/common/Framework.aspx?shid=0045002E
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

_________________________________________________________________
Vous rêvez de chaussettes aux doigts de pieds séparés? Demandez à MSN Search! http://search.msn.ch/results.aspx?q=chaussettes+originales&FORM=QBRE


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to