Thanks Wayne...I just found a link to the other post about this: 
http://www.mail-archive.com/users@maven.apache.org/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:wayne...@gmail.com] 
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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

Reply via email to