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 <[EMAIL PROTECTED]> 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.
> > 
> >

Reply via email to