Re: [configuration] please use optional in POM

2006-03-23 Thread Henri Yandell
How do you do that in m1? properties scopeoptional/scope /properties ?? Hen On 3/22/06, Nicolas De Loof [EMAIL PROTECTED] wrote: Hello, I'm using maven2 and commons-configuration, and I need to configure lot's of exclusion as commons-configuration POM declares lot's of dependencies that

RE: [configuration] please use optional in POM

2006-03-23 Thread Jörg Schaible
Henri Yandell wrote on Thursday, March 23, 2006 9:14 AM: How do you do that in m1? properties scopeoptional/scope /properties Exactly! The project.xml of configuration already have some deps with scope definitions for test. Similar can be done for optional. - Jörg

Re: [configuration] please use optional in POM

2006-03-23 Thread Carlos Sanchez
no, scope is different than optional properties optionaltrue/optional /properties On 3/23/06, Jörg Schaible [EMAIL PROTECTED] wrote: Henri Yandell wrote on Thursday, March 23, 2006 9:14 AM: How do you do that in m1? properties scopeoptional/scope /properties Exactly! The

Re: [configuration] please use optional in POM

2006-03-23 Thread Emmanuel Bourg
Carlos Sanchez wrote: no, scope is different than optional properties optionaltrue/optional /properties What is the definition of an optional dependency ? It depends on the use of the library. If I use a plist configuration most of the time I would not want the commons-codec dependency to

RE: [configuration] please use optional in POM

2006-03-23 Thread Jörg Schaible
Emmanuel Bourg wrote on Thursday, March 23, 2006 12:59 PM: Carlos Sanchez wrote: no, scope is different than optional properties optionaltrue/optional /properties What is the definition of an optional dependency ? It depends on the use of the library. If I use a plist configuration

Re: [configuration] please use optional in POM

2006-03-23 Thread Arnaud HERITIER
The documentation about scopes is defined here : http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html In maven 1, even if we don't use the scope for dependencies, you can define them with dependency groupId???/groupId artifactId/artifactId

Re: [configuration] please use optional in POM

2006-03-23 Thread Nicolas De Loof
I agree with this : only required for any use case dependencies have to be made non-optional. Without this, transitive dependencies is not a cool feature anymore and becomes a exclusion-hell. Well, anything but core dependencies are IMHO optional. If you decide to make usage of

[configuration] please use optional in POM

2006-03-22 Thread Nicolas De Loof
Hello, I'm using maven2 and commons-configuration, and I need to configure lot's of exclusion as commons-configuration POM declares lot's of dependencies that are only required for some specialized use-cases. Those dependencies may be declared as optional (dom4j, servletapi,