You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ni...@arsoe-trelaze.com on 2004/03/26 13:43:28 UTC

Réf. : Réf. : EJB files for client

The ejb plugin have maven.ejb.client.* properties to generate the ejb 
client jar.
http://maven.apache.org/reference/plugins/ejb/properties.html
ejb:ejb-client goal will generate it.

Nicolas,






"Magnus Stattin" <ma...@mmedu.net>
26/03/2004 12:47
Veuillez répondre à "Maven Users List"

 
        Pour :  users@maven.apache.org
        cc : 
        Objet : EJB files for client


When working with EJB you need to make the component and home interfaces
available to clients. Dto's or Value objects usually also needs to be
included. 

Are there any easy way to package these up to make them available to the
client? As every project are supposed to produce one artifact I end up
making separate projects to package the client dependencies right now.
There ought to be an easier and better way. 

How do you solve this?

/Thanks in advance

Magnus


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Réf.: Réf.: EJB files for client

Posted by Magnus Stattin <ma...@mmedu.net>.
Thank you Nicolas, that helped a lot. I still need to get this client.jar
to be installed in the repository so that it will be available to the
clients, right? 

I couldn't find any support for this in the ejb plugin. I tried to add
this goal to the the ejb-plugin but it installs the client jar with the
normal artifact name and not with the -client ending.

  <!--==================================================================-->
  <!-- Install the ejb-client in the local repository                   -->
 
<!--==================================================================--> 
  
  <goal name="ejb:install-client"
        prereqs="ejb:ejb-client"
        description="Install the ejb-client in the local repository">
     
     <artifact:install
        artifact="${maven.build.dir}/${maven.final.name}-client.jar"
        type="jar"
        project="${pom}"/> 
  </goal>

I hope I make myself understood. I am just not getting how to make this
easily.

/Best Regards


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org