I believe that the j2ee plugin is no longer the preferred mechanism. Instead
the ejb, war and ear plugins should be used. 

So you should be able to find the documentation at:
http://jakarta.apache.org/turbine/maven/reference/plugins/ejb/goals.html
etc.

I am not really familiar with the Weblogic specific tools such as ejbjar but
maven creates the jars just fine for me (and is more portable). Incidentally
maven does nto use the ejbjar tool 'uner the covers'. One potential pitfall
is that Weblogic, in common with some other servers, uses the ejb jar's
manifest file to define the classpath for the component. This is catered for
by adding properties to the relevant dependencies in your project.xml but it
may not be immediately obvious how to do it. Here is an example: 

    <dependency>
      <id>log4j</id>
      <version>1.2.6</version>
      <url>http://jakarta.apache.org/log4j/</url>
      <properties>
        <ejb.manifest.classpath>true</ejb.manifest.classpath>
      </properties>
    </dependency>

The plugin properties that are available for the plugin are not the
maven.appserver ones but rather the maven.ejb.* or .war.*

HTH, 
Tim 

-----Original Message-----
From: Chan, Charles [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 3 January 2003 2:24 AM
To: 'Turbine Maven Users List'
Subject: j2ee plugin: ejb jar files


Hi, I am trying to use the "j2ee" plugin to generate ejb jar files.

1. How do I setup my Maven to use j2ee plugins and what is the name of the
goal? I tried maven:ejb but got the following error:

[ERROR] BUILD FAILED
[ERROR] Goal "maven:ejb" does not exist in this project.

2. Are the documentation in: 

http://jakarta.apache.org/turbine/maven/reference/plugins/j2ee/build-file.ht
ml

correct? I couldn't find the j2ee-build.xml file. Can I use j2ee plugin
without using Ant?

3. I am using WebLogic 7, how does the j2ee plugin know to call WebLogic's
ejbjar? Does it make use of maven.appserver.* properties?

Thanks
Charles

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to