maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tran, Khiet" <khiet.t...@melochemonnex.com>
Subject RE: Two artifacts for one project
Date Thu, 05 May 2005 19:29:48 GMT
Yes, and following Thomas' recommendations, I opened ejb:install and it uses
artifact:install exactly as I do.
The difference between ejb:ejb/ejb:ejb-client and our custom ant-task is
that I need both artifacts into my ear. I cannot get both (ejb/jar) into my
ear through dependency, which is not needed for ejb:ejb produced artifact.


-----Original Message-----
From: dan tran [mailto:dantran@gmail.com] 
Sent: Thursday, May 05, 2005 3:06 PM
To: Maven Users List
Subject: Re: Two artifacts for one project


Khiet, did you use custom ant tasks to build your jar and jeb?

-D

On 5/5/05, Steve Molloy <smolloy@convera.com> wrote:
> Better yet, you should split your code in 2 projects, one for 
> component, and one for EJB which depends on the first one.
> 
> Steve
> 
> On Thu, 2005-05-05 at 19:36 +0200, Thomas Van de Velde wrote:
> 
> > You should call ejb:install and jar:install. artifact:install is a 
> > lower-level goal that should not be used directly.  When you call 
> > ejb:install, your ejb will be installed in an ejbs folder. When you 
> > call jar:install, your jar is copied to a jars folder.  You can now 
> > use them as a dependency by setting <type>ejb</type> or 
> > <type>jar</type> (The latter can be left out as by default 
> > dependencies resolve to "jar".  Thomas
> >  On 5/5/05, Tran, Khiet <khiet.tran@melochemonnex.com> wrote:
> > >
> > > Hi everyone,
> > >
> > > We have a legacy directory structure of components that I want to 
> > > convert to maven. The context I have is that for some components 
> > > (maven project), a custom ant-task generates two different jars 
> > > for it. root/
> > > |----component
> > > project.xml
> > > |----target/
> > > |-----componentEjb-version.jar
> > > |-----component-version.jar
> > >
> > > So for installing these into the repository, I am using the 
> > > artifact:install goal with 2 different types: jar & ejb, which 
> > > installs 2 separate jars into
> > > the local repository. But I cannot retrieve one of the two jar as both
> > > uses
> > > the same pom.
> > >
> > > My question is, is it possible for me to specify a different pom 
> > > then the current one ${pom} when using the goal artifact:install? 
> > > And if I am using the same pom for both artifacts of different 
> > > types, how do I refer to both as dependencies. I've tried it but 
> > > it does not work.
> > >
> > > Thanks, Khiet.
> > >
> > >
> 
>

---------------------------------------------------------------------
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


Mime
View raw message