Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help needed for building ejb project with maven

 
Satya Maheshwari
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am a newbie to maven, hence patience solicited.

I have to build a project having ejbs using maven. I have googled around for this and now using ejb-plugin.

Now my problem is, how do I get persistence.xml specifically and any config generally, included in the jar's meta-inf folder.

I mean, what is the standard way? If it were ant, I would have simply copied the files before building the jar. Does the same hold true for maven?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need any plugin for that. EJB deployments are plain .jar files (I know they can be deployed via a .war in EJB3.1, but that's a different topic). So all you have to do is have your project structure in the standard Maven layout:



And just do a



to generate the ejb jar.
 
Satya Maheshwari
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic