Thanks Franz for your answer - yes, you understood the problem perfectly. I had gone through the debugger and noticed that setArtifacts was getting called after my plug-in was called.
I have solved the problem (partially) by adding the Jar file to DependencyArtifacts in MavenProject. This works for compile but doesn't work for Eclipse project generation. How can I solve Eclipse project issue? -----Original Message----- From: franz see [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 8:07 PM To: [EMAIL PROTECTED] Subject: Re: Multiple artifacts Good day, AFAIU, you have a single maven project that packages several binaries and adds them to the classpaths via a plugin that you've created. But the binary that you add via your plugin gets overriden by the binary added via maven's transitive dependency....Did I get that right? Curious, what made you think that that binary gets overriden? Maybe your classpath issue is a plugin specific problem ( i.e. a plugin only uses the classpath maven made and not yours ). Cheers, Franz Goel, Deepak wrote: > > I have a project that builds multiple artifacts - a jar, a DLL and > others that are shared by the Jar and DLL. For various reasons, we have > decided to create a single POM that has plug-ins in right phases to > build the DLL. > > > > So we decided to package this as a ZIP that gets unzipped at the right > time. We also have a plug-in that adds the Jar file as a dependency. The > issue is that dependency on Jar file gets overwritten during transitive > dependency resolution. Interestingly, the direct dependencies aren't > affected. > > > > For example, if there's a project C that depends on B. B in turn depends > on A. When I compile C, B.jar remains in the classpath but A.jar gets > removed. I have verified that the plug-in indeed adds A.jar. > > > > I'll appreciate if somebody can help me resolve this issue. > > > > Deepak Goel | Small Business Division, Intuit | direct - (650) 944-3287 > > > > > -- View this message in context: http://www.nabble.com/Multiple-artifacts-tf3550158s177.html#a9932478 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]
