You have to exclude spring then.

On 10/11/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
My EAR has
spring-2.0.jar
spring-[partial lib]-1.2.7 (i.e spring-aop-1.2.7)
....


On 10/10/06, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
>
> That's actually wrong. See
>
> 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
>
> You don't use excludes to change the version of a dependency, you have
> to explicitly add that dependency in your pom in the version you want.
>
> "Dependency mediation - this determines what version of a dependency
> will be used when multiple versions of an artifact are encountered.
> Currently, Maven 2.0 only supports using the "nearest definition" - so
> you can always guarantee a version by declaring it explicitly in your
> project's POM."
>
> On 10/11/06, Max Cooper <[EMAIL PROTECTED]> wrote:
> > Mick,
> >
> > I am using Spring 2.0 and Acegi 1.0.2.
> >
> > Use dependency excludes to suppress the Spring 1.2.7 stuff.
> >
> > -Max
> >
> > Mick Knutson wrote:
> > > Is anyone else using spring 2.0 and acegi 1.0.2????
> > >
> > >
> > > It seems acegi 1.0.2 is requiring spring 1.2.7 and adds 1.2.7 and 2.0into
> > > my ear.
> > > Is this an issue with the spring libs I imported?
> > >
> > >
> > >
> > > On 9/18/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> > >>
> > >> On 9/18/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > >>
> > >> > I am trying to use this:
> > >> ... {spring dependencies} ...
> > >> > But my war seems to be getting 1.2.7 and 2.0-rc3 jars
> > >> > Why?
> > >>
> > >> Did you upgrade this app to Spring 2?  If so, did you 'mvn clean'
> > >> after changing the dependency versions?  The old ones may have been
> > >> left in WEB-INF/lib under 'target'.
> > >>
> > >> If that's not it, run
> > >>    mvn package -X > output.txt
> > >>
> > >> and take a look at the output, which will include an indented tree
> > >> view of dependencies.  You'll be able to see where each dependency is
> > >> coming from, and exclude the ones you don't want.
> > >>
> > >> You can get two versions of the same library if the groupId has
> > >> changed without being "relocated" in the repository.  (Didn't Spring
> > >> change from 'springframework' to 'org.springframework'?)  Maven has
> no
> > >> way of knowing they are the 'same'.
> > >>
> > >> HTH,
> > >> --
> > >> Wendy
> > >>
> > >> ---------------------------------------------------------------------
> > >> 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]
> >
> >
>
>
> --
> I could give you my word as a Spaniard.
> No good. I've known too many Spaniards.
>                              -- The Princess Bride
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson




--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
                            -- The Princess Bride

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to