On Fri, 2004-06-25 at 04:33, Nicolas De Loof wrote: > Some simple (?) questions about (future) transitive dependencies : > > If jar A declares in his POM some dependencies, let's say jaxb, jaxbimpl and easymock > - jaxb is used at build time > - jaxb impl is needed at runtime > - easymock is used in junit tests > > If my webapp depends on this jar, will transitive dependencies (when avaible) > automatically set all this jar to > 'war.bundle=true' ? > > Does maven have a way to know what a dependency is needed for ?
Maven2 would know that your project produces a primary artifact which a WAR file by stating so in the v4 POM: <project> <type>war</type> ... </project> So maven would assume you want the dependencies listed within to be used in your WAR :-) So you list your runtime dependencies and on a per goal basis m2 allows a goal to specify whether it needs transitive dependency resolution (obviously you don't want transitive dep resolution for the "clean" goal). So the "war" goal in m2 would see transitive dependency resolution is desired so they would be resolved and would be available. There will be better modes of filtering to remove things like test artifacts so you could mark the rest as being candidates for bundling in the WAR. The behaviour is encapsulated in the plugin: the goal can specify the need for transitive dependencies and then the goal code can do what it wishes with the resolved graph of dependencies. > If not, why allready having POM in repository if they will have to be updated ? POMs will be instrumental in m2 and artifacts will not be deployable without POMs anyway. > > Nico. > > > > Our name has changed. Please update your address book to the following format: > "[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] -- jvz. Jason van Zyl [EMAIL PROTECTED] http://maven.apache.org happiness is like a butterfly: the more you chase it, the more it will elude you, but if you turn your attention to other things, it will come and sit softly on your shoulder ... -- Thoreau --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
