Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB3 package not in Maven repository?

 
Simon Joseph Aquilina
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to develop a project that is based on EJB3. However it seems that there is no EJB3 package in Maven repository. I went to the following website to comfirm; http://mvnrepository.com/artifact/javax.ejb/ejb

As you can see from the above website there is only packages for EJB 2.0 and 2.1. If the EJB3 package is not on Maven repository then how can I set the dependency in my POM file?

Regards,
Sim085
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add these lines in your pom.xml



Hope it helps.

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JPA part of EJB is javax/persistence/persistence-api. I have a 1.0 and a 1.0b, but I'm not sure if 2.0 is live yet.
 
Simon Joseph Aquilina
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you both very much for all the help Both the EJB and Persistence libraries where downloaded and code is working successfully!! Thanks again

Regards,
Sim085
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic