felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger" <Felix.Meschber...@day.com>
Subject Re: [jira] Commented: (FELIXM2-10) maven-bundle-plugin: Failures if src or parts of it are missing
Date Tue, 07 Nov 2006 13:58:29 GMT
Hi Richard,

> By including it, all resources will be copied into the resulting JAR
> file as expected. Perhaps what we need to do is have the plugin
> automatically convert any resources listed in the POM to the
> Include-Resource instruction, as you basically suggested...

I agree, that it might be burden to the developper to have to think
about not forgetting to include the resources through Private-Package
declarations. And mabe it is just simpler to do it this way.

On the other hand, I assume that 99% of the projects do not specify
resources other than the default and most of the time those should be
copied. Hence, it might as well be left as is. And hanlding "missing
resources" is fixed, so we might just go ahead :-)


> -> richard
> >
> >> maven-bundle-plugin: Failures if src or parts of it are missing
> >> ---------------------------------------------------------------
> >>
> >>                 Key: FELIXM2-10
> >>                 URL: http://issues.apache.org/jira/browse/FELIXM2-10
> >>             Project: Felix M2 Plugin
> >>          Issue Type: Bug
> >>            Reporter: Felix Meschberger
> >>         Assigned To: Richard S. Hall
> >>         Attachments: FELIXM2-10.diff
> >>
> >>
> >> When using the maven-bundle-plugin to build bundles from existing jar files,
three issues exist:
> >>    * If nothing is copied into the project output directory (target/classes),
the folder does not exist and the BundlePlugin.getClassPath fails for the line "new Jar(".",
> >>    * If no resources exist, an exception is logged for the missing src/main/resources
folder. I suggest to only place a default Include-Resources header if the src/main/resources
folder exists.
> >>    * If no maven build phase generates output the target folder does not exist
at the time the BundlePluing.execute method tries to write the JAR File.
> >> I will attach a patch for the three issues.
> >>
> >
> >

View raw message