You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Morgovsky, Alexander (US - Glen Mills)" <am...@deloitte.com> on 2006/09/09 17:12:21 UTC

Build dependencies

My previous email may not have come through.  I would like to send it
again to make sure.
Hi, I have been using Ant for a long time and am now starting to use
Maven.  I also have a background in Java, so I am trying to learn as
much as I can about Maven.  Here is an issue which I cannot get around
as of now.  In Maven1 it was possible to bundle .jar files inside other
archives by using the <properties><war.bundle>/<war.bundle></properties>
elements.  In Maven2, it looks like this cannot be done.  I was thinking
of writing a Mojo for this and binding it to the prepare resources
phase, but I am not sure.  Also, on that note, what packages to I need
to include in the Mojo classes to be able to traverse dependencies,
artifacts, and the like?  For example, if I want to iterate over the
Artifacts in the <dependency> set of a project, what import statement do
I need in the beginning of the Java file, and in general, how do I
figure out which packages I need to import when writing Mojo's?  Thanks
in advance for any help given. 


This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]

Re: Build dependencies

Posted by Wayne Fay <wa...@gmail.com>.
Actually, Wendy responded to your original email... Here's her response:

Are you trying to include some jars in WEB-INF/lib ?

If your packaging type is 'war', then anything you declare as a
dependency in compile (or runtime) scope will be added to WEB-INF/lib.

If that's not it, what do you need it to do?

--
Wendy


On 9/9/06, Morgovsky, Alexander (US - Glen Mills)
<am...@deloitte.com> wrote:
> My previous email may not have come through.  I would like to send it
> again to make sure.
> Hi, I have been using Ant for a long time and am now starting to use
> Maven.  I also have a background in Java, so I am trying to learn as
> much as I can about Maven.  Here is an issue which I cannot get around
> as of now.  In Maven1 it was possible to bundle .jar files inside other
> archives by using the <properties><war.bundle>/<war.bundle></properties>
> elements.  In Maven2, it looks like this cannot be done.  I was thinking
> of writing a Mojo for this and binding it to the prepare resources
> phase, but I am not sure.  Also, on that note, what packages to I need
> to include in the Mojo classes to be able to traverse dependencies,
> artifacts, and the like?  For example, if I want to iterate over the
> Artifacts in the <dependency> set of a project, what import statement do
> I need in the beginning of the Java file, and in general, how do I
> figure out which packages I need to import when writing Mojo's?  Thanks
> in advance for any help given.
>
>
> This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message.
>
>
> Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
>
>

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