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]
>

Reply via email to