Re: [configuration] please use optional in POM
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 are only required for some specialized use-cases. Those dependencies may be declared as optional (dom4j, servletapi, comons-codec...) Could someone update the POM ? This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - 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]
RE: [configuration] please use optional in POM
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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [configuration] please use optional in POM
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 project.xml of configuration already have some deps with scope definitions for test. Similar can be done for optional. - Jörg - 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]
Re: [configuration] please use optional in POM
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 be excluded for example. There are several dependency sets depending on the features you are interested in as described here: http://jakarta.apache.org/commons/configuration/dependencies.html It's not obvious to decide what is optional imho. Emmanuel Bourg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [configuration] please use optional in POM
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 most of the time I would not want the commons-codec dependency to be excluded for example. There are several dependency sets depending on the features you are interested in as described here: http://jakarta.apache.org/commons/configuration/dependencies.html It's not obvious to decide what is optional imho. Well, anything but core dependencies are IMHO optional. If you decide to make usage of functionality, that requires additional dependencies, you must add them in your project, that makes usage of them. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [configuration] please use optional in POM
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 version/version properties scopetest/scope /properties /dependency It will be used for the documentation http://maven.apache.org/maven-1.x/dependencies.html and to convert the m1 pom to the m2 pom in the repository http://mavenbook.xwiki.com/xwiki/bin/view/Main/BeMaven2Friendly cheers Arnaud On 3/23/06, Emmanuel Bourg [EMAIL PROTECTED] wrote: 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 be excluded for example. There are several dependency sets depending on the features you are interested in as described here: http://jakarta.apache.org/commons/configuration/dependencies.html It's not obvious to decide what is optional imho. Emmanuel Bourg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [configuration] please use optional in POM
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 functionality, that requires additional dependencies, you must add them in your project, that makes usage of them. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[configuration] please use optional in POM
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, comons-codec...) Could someone update the POM ? This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]