File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes help needed for building ejb project with maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "help needed for building ejb project with maven" Watch "help needed for building ejb project with maven" New topic
Author

help needed for building ejb project with maven

Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
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?


Thanks and Regards
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10102
    
165

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.

[My Blog] [JavaRanch Journal]
Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
Thanks!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help needed for building ejb project with maven