maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brendan Haverlock" <brend...@mirthcorp.com>
Subject RE: Override dependency classes with another module's classes
Date Fri, 22 May 2009 18:16:48 GMT
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:waynefay@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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



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


Mime
View raw message