You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Alex Objelean <al...@isdc.ro> on 2007/10/17 13:56:44 UTC

[RFE] Transitive dependencies changes in parent/pom.xml

In parent/pom.xml there is a dependency on spring-2.0. I most of the
projects, it is a best practice to not use the entire spring as a
dependency, but to use modular dependencies (eg: spring-core, spring-web,
etc).

For instance, now you depend on spring-2.0 and the project we are building
is depending on spring-core-2.0.7. When maven builds the war, the classpath
contains both: spring-2.0 & spring-core-2.0.7 which is causing some troubles
depending on working environment.

Thanks!
Alex.
-- 
View this message in context: http://www.nabble.com/-RFE--Transitive-dependencies-changes-in-parent-pom.xml-tf4640092.html#a13252196
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [RFE] Transitive dependencies changes in parent/pom.xml

Posted by Igor Vaynberg <ig...@gmail.com>.
so exclude them in your pom...

-igor


On 10/17/07, Alex Objelean <al...@isdc.ro> wrote:
>
> Sorry for opening this discussion, I haven't noticed that this has been
> discussed already. I will not argue on  this subject, it is about the
> preferences. The single disadvantages of the current approach, is that the
> resulted  war contains a lot of unused dependencies.
>
> Thank you!
>
>
> Martijn Dashorst wrote:
> >
> > This has been discussed over and over. In our experience most people
> > want to use the whole. And if not, then they *ONLY* need to exclude
> > one dependency, whereas otherwise they have to do a lot more.
> >
> > We have made a conscious decision to use spring instead of spring-*.
> >
> > Martijn
> >
> > On 10/17/07, Alex Objelean <al...@isdc.ro> wrote:
> >>
> >> In parent/pom.xml there is a dependency on spring-2.0. I most of the
> >> projects, it is a best practice to not use the entire spring as a
> >> dependency, but to use modular dependencies (eg: spring-core, spring-web,
> >> etc).
> >>
> >> For instance, now you depend on spring-2.0 and the project we are
> >> building
> >> is depending on spring-core-2.0.7. When maven builds the war, the
> >> classpath
> >> contains both: spring-2.0 & spring-core-2.0.7 which is causing some
> >> troubles
> >> depending on working environment.
> >>
> >> Thanks!
> >> Alex.
> >> --
> >> View this message in context:
> >> http://www.nabble.com/-RFE--Transitive-dependencies-changes-in-parent-pom.xml-tf4640092.html#a13252196
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> >
> > --
> > Buy Wicket in Action: http://manning.com/dashorst
> > Apache Wicket 1.3.0-beta4 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/-RFE--Transitive-dependencies-changes-in-parent-pom.xml-tf4640092.html#a13252486
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: [RFE] Transitive dependencies changes in parent/pom.xml

Posted by Alex Objelean <al...@isdc.ro>.
Sorry for opening this discussion, I haven't noticed that this has been
discussed already. I will not argue on  this subject, it is about the
preferences. The single disadvantages of the current approach, is that the
resulted  war contains a lot of unused dependencies. 

Thank you!


Martijn Dashorst wrote:
> 
> This has been discussed over and over. In our experience most people
> want to use the whole. And if not, then they *ONLY* need to exclude
> one dependency, whereas otherwise they have to do a lot more.
> 
> We have made a conscious decision to use spring instead of spring-*.
> 
> Martijn
> 
> On 10/17/07, Alex Objelean <al...@isdc.ro> wrote:
>>
>> In parent/pom.xml there is a dependency on spring-2.0. I most of the
>> projects, it is a best practice to not use the entire spring as a
>> dependency, but to use modular dependencies (eg: spring-core, spring-web,
>> etc).
>>
>> For instance, now you depend on spring-2.0 and the project we are
>> building
>> is depending on spring-core-2.0.7. When maven builds the war, the
>> classpath
>> contains both: spring-2.0 & spring-core-2.0.7 which is causing some
>> troubles
>> depending on working environment.
>>
>> Thanks!
>> Alex.
>> --
>> View this message in context:
>> http://www.nabble.com/-RFE--Transitive-dependencies-changes-in-parent-pom.xml-tf4640092.html#a13252196
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> 
> -- 
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0-beta4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-RFE--Transitive-dependencies-changes-in-parent-pom.xml-tf4640092.html#a13252486
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [RFE] Transitive dependencies changes in parent/pom.xml

Posted by Martijn Dashorst <ma...@gmail.com>.
This has been discussed over and over. In our experience most people
want to use the whole. And if not, then they *ONLY* need to exclude
one dependency, whereas otherwise they have to do a lot more.

We have made a conscious decision to use spring instead of spring-*.

Martijn

On 10/17/07, Alex Objelean <al...@isdc.ro> wrote:
>
> In parent/pom.xml there is a dependency on spring-2.0. I most of the
> projects, it is a best practice to not use the entire spring as a
> dependency, but to use modular dependencies (eg: spring-core, spring-web,
> etc).
>
> For instance, now you depend on spring-2.0 and the project we are building
> is depending on spring-core-2.0.7. When maven builds the war, the classpath
> contains both: spring-2.0 & spring-core-2.0.7 which is causing some troubles
> depending on working environment.
>
> Thanks!
> Alex.
> --
> View this message in context: http://www.nabble.com/-RFE--Transitive-dependencies-changes-in-parent-pom.xml-tf4640092.html#a13252196
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

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