The order in the poms is maintained as of 2.0.10, so you should be able to
affect the classpath by reordering the poms.

2009/5/22 Brendan Haverlock <[email protected]>

> Thanks Wayne...I just found a link to the other post about this:
> http://www.mail-archive.com/[email protected]/msg70079.html  Thanks
> for not redirecting me to the "What is Maven" page.
>
> That seems like the only plausible solution to me for now.  Is there any
> plan for making the dependency order matter in the POM files?  That would be
> really useful!
>
> Thanks again,
>
> Brendan Haverlock
>
> -----Original Message-----
> From: Wayne Fay [mailto:[email protected]]
> Sent: Friday, May 22, 2009 11:12 AM
> To: Maven Users List
> Subject: Re: Override dependency classes with another module's classes
>
> > Unfortunately, we are overriding classes from a dependency library, so we
> > are just putting the classes in the same package and wanting our
> overriding
> > classes to get precedence on the classpath.  So, our classes are in the
> same
> > package as the library's classes and have the same class name, we just
> want
> > ours to be used at compile time.
>
> This just won't work at all, at least not consistently. Build a
> different jar containing just the classes you DON'T override, and
> depend on it instead.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to