Thanks a lot for this link, in fact I have learned from it that it is possible (a) to create EJB3 compliant JARs (b) to not only specify excludes but also includes.

Markus

Markku Saarela schrieb:

And you can config this ejb client jar with |clientExcludes parameter in |maven-ejb-plugin as documented here: http://maven.apache.org/plugins/maven-ejb-plugin/ejb-mojo.html

Regards,

Markku

Markus KARG wrote:

Markku,

thanks a lot for your kind help!

We will try out tomorrow!

Thanks a lot
Markus

Markku Saarela wrote:
Configure you ejb plugin like this:

 <build>
   <plugins>
     <plugin>
       <artifactId>maven-ejb-plugin</artifactId>
       <inherited>true</inherited>
       <configuration>
         <archive>
           <manifest>
             <addClasspath>true</addClasspath>
           </manifest>
         </archive>
         <generateClient>true</generateClient>
       </configuration>
     </plugin>
   </plugins>
 </build>

then in you module where you have dependency of this ejb client jar :

 <dependencies>
   <dependency>
     <groupId>your_group_id</groupId>
     <artifactId>dbserviceejb</artifactId>
     <version>${version}</version>
     <type>ejb-client</type>
   </dependency>
 </dependencies>

regards,

Markku


Markus KARG wrote:
Actually I don't want to do that but I want to know and do the
maven-ejb-plugin way.

Nevertheless,
thanks a lot!

Markus

[EMAIL PROTECTED] schrieb:

Not necessarily the maven-ejb-plugin way, but you can create a separate module for the EJB client and then add a compile dependency on the that project in your EJB project's pom. We did this to get around the fact
that using the generateClient option on the maven-ejb-plugin
generates a
pom for the client with way too many dependencies (includes all of the
EJBs dependencies) and so that we could compile the EJB in 1.5 but
compile the client under 1.4.


-----Original Message-----
From: Markus KARG [mailto:[EMAIL PROTECTED] Sent: Thursday,
September 14, 2006 4:23 AM
To: Maven Users List
Subject: EJB Client JAR

Using Maven2's ejb package, I was able to create an ejb-jar from my
sources.
But not I want Maven to create an "EJB Client JAR", that only contains
the interfaces, and make another JAR dependent of that "EJB Client
JAR" (by means of Class-Path: entry in MANIFEST.MF).

How to do that?

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








begin:vcard
fn:Markus KARG
n:KARG;Markus
org:QUIPSY QUALITY GmbH;Entwicklung / R & D
adr:;;Stuttgarter Strasse 23;Pforzheim;Baden-Wuerttemberg;75179;Bundesrepublik Deutschland
email;internet:[EMAIL PROTECTED]
title:Staatl. gepr. Inf.
tel;work:+49-7231-9189-52
tel;fax:+49-7231-9189-59
note:QUIPSY(R) Entwicklung / R & D
x-mozilla-html:TRUE
url:http://www.quipsy.de
version:2.1
end:vcard

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to