You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by buters <fr...@mail.ru> on 2008/06/30 02:16:42 UTC

annotations are not supported in -source 1.3

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
-- 
View this message in context: http://www.nabble.com/annotations-are-not-supported-in--source-1.3-tp18186885p18186885.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: problem with clover

Posted by James William Dumay <ja...@atlassian.com>.
Buters,
That is a known issue that has been fixed in the latest release of
clover.

Have a look at:
http://confluence.atlassian.com/display/CLOVER/Clover-for-Maven+2+User's
+Guide

If this does not solve your problem please contact our support
department.

Thanks!

James



On Sun, 2008-06-29 at 18:34 -0700, buters wrote:
> Thank you very much, James William.
> 
> But I have a new problem. I want create Test Coverage report with clover
> plugin, but I get such error:
> 
> [INFO] [clover:instrumentInternal]
> Clover Version 1.3.13, built on September 04 2006
> loaded from:
> C:\shared\.m2\repository\com\cenqua\clover\clover\1.3.13\clover-1.3.13.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] This license has now expired.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.RuntimeException: This license has now expired.
> 
> Please help me.
> 
> Thanks beforehand,
> regards, buters
> 
> 
> James William Dumay wrote:
> > 
> > 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: 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


problem with clover

Posted by buters <fr...@mail.ru>.
Thank you very much, James William.

But I have a new problem. I want create Test Coverage report with clover
plugin, but I get such error:

[INFO] [clover:instrumentInternal]
Clover Version 1.3.13, built on September 04 2006
loaded from:
C:\shared\.m2\repository\com\cenqua\clover\clover\1.3.13\clover-1.3.13.jar
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] This license has now expired.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.RuntimeException: This license has now expired.

Please help me.

Thanks beforehand,
regards, buters


James William Dumay wrote:
> 
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/annotations-are-not-supported-in--source-1.3-tp18186885p18187371.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: annotations are not supported in -source 1.3

Posted by James William Dumay <ja...@atlassian.com>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org