On Mon, 2005-10-24 at 09:30 -0400, Tomislav Stojcevich wrote: > If I am correct, maven2 includes all optional transient dependencies by > default and you have to specify an <exclude> for each optional transient > dependency you do not want. This could potentially lead to many excludes.
A project itself can also specify an <optional/> element for a dependency which means that the transitive dependencies for that dependency will not be included in the graph. But this is up to the project distributing the POM. > It would be nice to have a flag to to turn off all optional transient > dependencies from being included by default for a specific dependency > (something like <excludeOptionalDependencies>) and then specify what you > want included rather than specify what you want excluded. IMO the optional > transient dependencies you want included would be easier to determine > because you usually know what optional dependencies you use, and if you > don't your compile or test cases will tell you. This feature exists but the project where the POM originates must specify a dependency as optional. I created a JIRA issue so that this notion gets documented. > --tom -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
