'Course he must use Maven´s dependency management to include dependency jars
in classpath, but if for some reason of his he wants to include some jars
inside the one jar he is actually building, I think the best option would be
to make Maven think it´s a resource. I cant see how maven would include 5
jars inside another just by using it´s default dependency management.

On Thu, Apr 7, 2011 at 9:56 AM, Anders Hammar <[email protected]> wrote:

> Oh, no! He should not!
> This is what Maven's dependency management should be used for.
>
> /Anders
>
> On Thu, Apr 7, 2011 at 14:54, Rafael Vanderlei <[email protected]
> >wrote:
>
> > If I got what you meant, you could put the jars in the directory
> > src/main/resources (which is Maven's standard directory for resources)
> and
> > then Maven would include it in the root of the final generated jar.
> >
> > Regards,
> > Rafael.
> >
> > On Thu, Apr 7, 2011 at 9:14 AM, Sathyanarayana, Divya <
> > [email protected]> wrote:
> >
> > > Hi,
> > > I am new to Maven so, please help me out with the solution.
> > > I have set up a Java project and the pom creates a jar out of it. It
> has
> > > 5 dependency jars which are in my repository and the project refers to
> > > it fine (M2_REPO)
> > > These external jars are being placed under src directory but are not
> > > packaged with jar.
> > > I want to include these external jars in my jar. (Do not want to place
> > > each jar in resource manually)
> > >
> > > How do you tell pom.xml to include dependency jars in resources of the
> > > jar?
> > >
> > >
> > > Regards,
> > > Divya Arun
> > > Fidelity India
> > >
> > > This e-mail, including any attachment(s) hereto, is intended only for
> > > the individual or entity to whom it is addressed. It may contain
> > > proprietary, confidential or privileged information or attorney work
> > > product belonging to Fidelity Business Services India Pvt. Ltd. (FBS
> > > India) or its affiliates. If you are not the intended recipient of this
> > > e-mail, or if you have otherwise received this e-mail in error, please
> > > immediately notify the sender via return e-mail and permanently delete
> > > the original mail, any print outs and any copies, including any
> > > attachments. Any dissemination, distribution, alteration or copying of
> > > this e-mail is strictly prohibited. The originator of this e-mail does
> > > not guarantee the security of this message and will not be responsible
> > > for any damages arising from any dissemination, distribution,
> alteration
> > > or copying of this message and/or any attachments to this message by a
> > > third party or as a result of any virus being passed on. Any comments
> or
> > > statements made in this are not necessarily those of FBS India or any
> > > other Fidelity entity. All e-mails sent from or to FBS India may be
> > > subject to our monitoring and recording procedures.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> >
>

Reply via email to