Discussion:
Defining ejb-jar.xml for ejb 3.0 via pom
Weichselbaumer Michael (MWE 4170)
2010-04-26 15:05:42 UTC
Permalink
Hello!

I am using the maven-ejb-plugin (2.2.1) and I want to create an version
3.0 ejb without client.
I want to provide an ejb-jar.xml (weblogic-ejb-jar.xml to be more
precise) along with my ejb file.

When trying to create a version 2.x ejb, I am forced to provide an
ejb-jar.xml -> when doing so with 3.0 i am not.

When looking at the documentation @
http://maven.apache.org/plugins/maven-ejb-plugin/ejb-mojo.html i cannot
find
a paramter for specifying the deployment descriptor.
The error message provided by the plugin when trying to create a version
2.x ejb doesn't tell me how to pass it.

So now i am failing to create a version 2.x ejb because of the missing
parameter and suceeding in creating a version 3.0 ejb without the
descriptor,
which makes it useless to me.

Can anyone help me and tell me what parameter to use in my pom file in
order to specify the location of the ejb-jar.xml file so that it will be
packed in my ejb file?
Wayne Fay
2010-04-26 15:49:56 UTC
Permalink
Post by Weichselbaumer Michael (MWE 4170)
Can anyone help me and tell me what parameter to use in my pom file in
order to specify the location of the ejb-jar.xml file so that it will be
packed in my ejb file?
Google "maven ejb xml" gives me:
http://stackoverflow.com/questions/1716567/how-do-i-change-the-location-of-ejb-jar-xml-in-my-maven-project

Wayne

Loading...