Dear Maveners,

I tryied to compile my EJB3 project source using Maven with Jave 1.5, the below 
errorr comes up despite i set-up my Env based on 1.5 version, any idea i am 
having this error

C:\Stephani\workspace\Stephenie>mvn compile
[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Stafeni Maven Project
[INFO]    task-segment: [compile]
[INFO] 
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 10 source files to C:\Stephani\workspace\Stephenie\target\classes
[INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
----------------------------------------------------------------------------
[INFO] Compilation failure

C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Rank.java:[11,1] annotations 
are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@javax.persistence.Entity

C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Property.java:[11,1] 
annotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@javax.persistence.Entity

C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Property.java:[193,36] 
generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
        private java.util.Collection<steph.ejb.Rank> ranks;

C:\Stephani\workspace\Stephenie\src\java\steph\ejb\ManagerImpl.java:[16,1] 
annotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@Stateless

C:\Stephani\workspace\Stephenie\src\java\steph\ejb\ManagerImpl.java:[26,35] 
generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
                        Collection <Rank> ranks = manager.createQuery("from 
Rank r").getResultList();

C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Person.java:[12,1] 
annotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@javax.persistence.Entity

C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Person.java:[84,36] generics 
are not supported in -source 1.3
(try -source 1.5 to enable generics)
        private java.util.Collection<steph.ejb.Rank> ranks;

C:\Stephani\workspace\Stephenie\src\java\steph\web\action\PesronAction.java:[93,27]
 annotations are not supported in -source
3
(try -source 1.5 to enable annotations)
                          @SuppressWarnings("unchecked")

C:\Stephani\workspace\Stephenie\src\java\steph\web\action\PesronAction.java:[114,58]
 generics are not supported in -source 1
(try -source 1.5 to enable generics)
                                                ArrayList <Person> personlist= 
(ArrayList<Person>) manager.getPersonsList();

C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Eagent.java:[11,1] 
annotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@javax.persistence.Entity

C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Manager.java:[17,1] 
annotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@Local

C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Manager.java:[32,25] 
generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
        public ArrayList <Person> getPersonsList();


[INFO] 
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Feb 23 15:19:29 GMT 2006
[INFO] Final Memory: 3M/6M
[INFO] 
----------------------------------------------------------------------------

Thanks

Adel


Please consider AJ Business Solutions Ltd's disclaimer at the end of this email 
before reading this message or opening any attachments.










Adel Aneiba
Software Development
For and on Behalf of AJ Business Solutions Ltd.
Tel : 0870 7518 900 Ext 42 // Fax : 0870 4 10 14 15


This message is confidential and may be legally privileged. No confidentiality 
or privilege is waived or lost by any mistransmission. If you are not the 
intended recipient please delete it and all copies of it from your system, 
destroy any hard copies of it and notify the sender immediately.
 
You must not, directly or indirectly, use, disclose, distribute, print, or copy 
any part of this message or any attachment if you are not the intended 
recipient.
 
We will not accept any liability for damage caused by computer viruses and it 
is your responsibility to scan attachments (if any).
 
We may for the better performance of our business monitor incoming e-mails sent 
through our e-mail system. 

Reply via email to