Author
help needed for building ejb project with maven
Satya Maheshwari
Ranch Hand
Joined: Jan 01, 2007
Posts: 365
posted Oct 27, 2011 00:13:31
0
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
Saloon Keeper
Joined: Jul 20, 2005
Posts: 6720
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: 365
posted Oct 27, 2011 03:53:25
0
Thanks!!
subject: help needed for building ejb project with maven