Dear Maveners,
I am using Maven to build my ejb3 project, in the past I used Ant to build and deploy the project and it was working fine, but when I switch to Maven and I added the needed dependency but one dependency missing "javax.persistence" and it does not exit in any repository, so the below error appears, Any thought about this problem please 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\ManagerImpl.java:[10,25] package javax.persistence does not ex C:\Stephani\workspace\Stephenie\src\java\steph\ejb\ManagerImpl.java:[11,25] package javax.persistence does not ex C:\Stephani\workspace\Stephenie\src\java\steph\ejb\ManagerImpl.java:[12,17] cannot find symbol symbol : class Stateless location: package javax.ejb C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Manager.java:[14,17] cannot find symbol symbol : class Local location: package javax.ejb C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Manager.java:[15,17] cannot find symbol symbol : class Remove location: package javax.ejb C:\Stephani\workspace\Stephenie\src\java\steph\ejb\ManagerImpl.java:[19,19] cannot find symbol symbol : class EntityManager location: class steph.ejb.ManagerImpl C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Rank.java:[11,18] package javax.persistence does not exist C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Rank.java:[12,18] package javax.persistence does not exist C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Rank.java:[23,26] package javax.persistence does not exist C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Rank.java:[24,26] package javax.persistence does not exist C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Rank.java:[46,26] package javax.persistence does not exist C:\Stephani\workspace\Stephenie\src\java\steph\ejb\ManagerImpl.java:[18,12] cannot find symbol symbol : class PersistenceContext location: class steph.ejb.ManagerImpl C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Eagent.java:[11,18] package javax.persistence does not exist C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Eagent.java:[12,18] package javax.persistence does not exist C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Eagent.java:[24,26] package javax.persistence does not exist C:\Stephani\workspace\Stephenie\src\java\steph\ejb\Eagent.java:[25,26] package javax.persistence does not exist [INFO] ---------------------------------------------------------------------------- [INFO] For more information, run Maven with the -e switch [INFO] ---------------------------------------------------------------------------- [INFO] Total time: 2 seconds [INFO] Finished at: Fri Feb 24 15:33:37 GMT 2006 [INFO] Final Memory: 2M/10M [INFO] ---------------------------------------------------------------------------- Regards, 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.
