felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart McCulloch" <stuart.mccull...@jayway.net>
Subject Re: Problem with the bundle plugin (and patch)
Date Sat, 08 Dec 2007 10:42:07 GMT
On 08/12/2007, Stuart McCulloch <stuart.mcculloch@jayway.net> wrote:
>
> On 08/12/2007, Guillaume Nodet <gnodet@gmail.com> wrote:
> >
> > I have a problem when using this patch in a reactor.
> > It seems that the jars are sometimes extracted at the root instead of
> > ${basedir}/target/
> > I will investigate further.
>
>
found the problem - if you don't have any source code in your project
Maven will set the output directory to null, which the plexus unarchiver
assumes means the current directory... it's a simple fix

the patch uses the project output directory (ie. target/classes) - but if
> you're
> running the plugin in certain modes (ie. maybe forked lifecycle) then it
> could
> be picking up the 'initiating' project rather than the 'executed' project
>
> I've seen this happen with other settings, so I think I know the fix - but
> if you
> can send me a simple pom that recreates the issue, that would be great :)
>
> On Dec 6, 2007 4:51 PM, Guillaume Nodet < gnodet@gmail.com> wrote:
> >
> > > While working on the ServiceMix project, Hiram found a bug and raise a
> > > JIRA with an attached patch [1].
> > > The problem is that in a reactor build (multiproject build), maven
> > uses
> > > the ./target/classes folder of dependant modules and add those in the
> > > classpath.  This causes a problem, because the bundle plugin does not
> > > extract the classes in that folder, which cause the classpath to not
> > contain
> > > the neeed classes.
> > > Can someone review the patch and apply it please ?
> > > Thanks!
> > >
> > > [1] https://issues.apache.org/jira/browse/FELIX-433
> > >
> > > --
> > > Cheers,
> > > Guillaume Nodet
> > > ------------------------
> > > Blog: http://gnodet.blogspot.com/
> >
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> >
>
>
>
> --
> Cheers, Stuart




-- 
Cheers, Stuart

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message