What i'm really asking is there any effective way to do this with a single 
.pom file?
If i use a single .pom file, and I set <packaging>jar</packaging> in it, 
when i try
to use artifact:install to install the .war file, it automatically changes 
the suffix to .jar
when it deploys.

Same would happen if i want to deploy a .tld file.  I'm still miffed at 
the inability of
a .pom file to handle multiple artifacts effectively.  It's one of the 
biggest issues I'd
had with maven 1.0.x, and for some reason 2.0 never addressed the problem
(at least not to my knowledge).  To assume a build would only produce one 
artifact
with a single type of packaging, IMHO is not a valid assumption.

Also, competing dep management products, such as ivy, do allow multiple 
artifacts
to be specified in a single configuration file.  that being said, i'd 
rather use maven's
tasks if i can.  But having 3 pom files just to deploy a .jar, .war and 
.ear is a pain,
especially for maintenence.

---------------------
Matthew Inger
Fiberlink Communications Corp
215-664-1723



Brett Porter <[EMAIL PROTECTED]> 
09/30/2005 10:14 PM
Please respond to
"Maven Users List" <[email protected]>


To
Maven Users List <[email protected]>
cc

Subject
Re: Multi-artifact projects






I'm not entirely sure I know what you are asking, but I'd expect:

- create JAR file as usual
- install/deploy using tasks

- depend on jar file with a filesetId
- incorporate fileset in war at WEB-INF/lib with a flatten mapper
- install/deploy using tasks

is this what you needed to do?

- Brett

On 10/1/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Can anyone give me advice on handling multiple artifact projects?
> Basically, scenarios like this:
>
> .war file + .jar file (the jar file is an api, perhaps a web service)
>
> .ear file + .war file
>
> .jar file + .tld file
>
> I'm using the maven 2.0 tasks from ant, and using ANT to build my
> artifacts and calling the
> <artifact:install> and <artifact:deploy> tasks to actually push them to
> the local and remote
> repositories.
>
> ---------------------
> Matthew Inger
> Fiberlink Communications Corp
> 215-664-1723
>

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


Reply via email to