Buters,

Ahh, thats because annotations are 1.5 only.

You might want to configure the source and target parameters of the
compiler plugin in your build like the following:

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

Cheers
James

On Sun, 2008-06-29 at 17:16 -0700, buters wrote:
> Hi,
> 
> I've executed junit tests with Maven and get such error:
> 'annotations are not supported in -source 1.3
> <use -source 5 or higher to enable annotations>
> @Before'
> Which source is meant here? How can I solve this?
> 
> Thanks beforehand,
> regards, buters


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

Reply via email to