Re: maven-bundle-plugin, Include-Resource and src/main/resources

2007-03-23 Thread Alin Dreghiciu
On 3/23/07, Stuart McCulloch <[EMAIL PROTECTED]> wrote: On 23/03/07, Alin Dreghiciu <[EMAIL PROTECTED]> wrote: > Just checked out and if I use: > > > !META-INF.*, > * > > > I will get what I want: META-INF/spring not exported but in

Re: maven-bundle-plugin, Include-Resource and src/main/resources

2007-03-22 Thread Stuart McCulloch
On 23/03/07, Alin Dreghiciu <[EMAIL PROTECTED]> wrote: Just checked out and if I use: !META-INF.*, * I will get what I want: META-INF/spring not exported but included in the bundle due to, I suppose, Include-resource. It is anyhow

Re: maven-bundle-plugin, Include-Resource and src/main/resources

2007-03-22 Thread Alin Dreghiciu
Just checked out and if I use: !META-INF.*, * I will get what I want: META-INF/spring not exported but included in the bundle due to, I suppose, Include-resource. It is anyhow annoying that I will have exclude via the export-package dir

Re: maven-bundle-plugin, Include-Resource and src/main/resources

2007-03-22 Thread Alin Dreghiciu
On 3/22/07, Richard S. Hall <[EMAIL PROTECTED]> wrote: Alin Dreghiciu wrote: > Hi, > > Does anyone recalls why the following code was added to the > maven-bundle-plugin? > > if (new File(baseDir, "src/main/resources").exists()) { > header(properties, Analyzer.INCLUDE_RESOURCE, "src/main/re

Re: maven-bundle-plugin, Include-Resource and src/main/resources

2007-03-22 Thread Felix Meschberger
Hi, On 3/22/07, Richard S. Hall <[EMAIL PROTECTED]> wrote: although the conditional was added later because someone experienced an issue. This was me :-) The reason for the problems is, that if the src/main/resources folder would not exist but would be added to the BND properties, BND would fa

Re: maven-bundle-plugin, Include-Resource and src/main/resources

2007-03-22 Thread Richard S. Hall
Alin Dreghiciu wrote: Hi, Does anyone recalls why the following code was added to the maven-bundle-plugin? if (new File(baseDir, "src/main/resources").exists()) { header(properties, Analyzer.INCLUDE_RESOURCE, "src/main/resources/"); } In my view has two problems: 1. is useless since by

Re: maven-bundle-plugin, wrapping and excludeTransitive

2007-03-14 Thread Alin Dreghiciu
I just need one: the one I'm using as direct dependency. If you take a look at FELIX-225 you will know what I mean. And I want to do it automatically not to pick one by hand. Alin Dreghiciu On 3/15/07, Carlos Sanchez <[EMAIL PROTECTED]> wrote: the manifest goal will allow you to generate a bun

Re: maven-bundle-plugin, wrapping and excludeTransitive

2007-03-14 Thread Carlos Sanchez
the manifest goal will allow you to generate a bundle from the same project the bundleall will go through all transitive dependencies and bundle one by one if they are not already OSGi bundles. So if they are you'll get just the one you want On 3/14/07, Alin Dreghiciu <[EMAIL PROTECTED]> wrote:

Re: maven-bundle-plugin, wrapping and excludeTransitive

2007-03-14 Thread Alin Dreghiciu
I do not find the direct relation but I do find your improvements very useful especially the manifest goal. Could you detail more. Seems to me, if I get it rght that the bundleall will create a bundle for all dependencies. I just wish to allow me to just wrap the direct dependency and nothing else

Re: maven-bundle-plugin, wrapping and excludeTransitive

2007-03-14 Thread Carlos Sanchez
iche Nachricht- Von: Stuart McCulloch [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 09. März 2007 09:17 An: felix-dev@incubator.apache.org Betreff: Re: maven-bundle-plugin, wrapping and excludeTransitive Hi Michael, If the original jar has dependencies with 'compile' scope then they're

Re: maven-bundle-plugin, wrapping and excludeTransitive

2007-03-09 Thread Stuart McCulloch
BTW, one way to exclude transitive dependencies at the moment is: 1A) specify wrapped jars as dependencies with 'runtime' scope and use the maven-dependency-plugin to copy them into a directory called 'lib' ... the dependency plugin has an excludeTransitive option to not copy the e

Re: maven-bundle-plugin, wrapping and excludeTransitive

2007-03-09 Thread Stuart McCulloch
Hi Michael, If the original jar has dependencies with 'compile' scope then they're added to the build classpath and packaged in the final bundle. This may or may not be what you want - some jars have dependencies that form a collective module and would never appear separately, so you'd like those

Re: maven-bundle-plugin, wrapping and excludeTransitive

2007-03-09 Thread Felix Meschberger
Hi Michael, Transitive dependencies are a great thing and huge plus for Maven 2 over Maven 1. On the other hand, if not judiciosly configured, transitive dependencies may quickly evolve to a huge pile of libraries being packed when using packing plugins like the maven-bundle-plugin (as well as th

Re: maven-bundle plugin

2007-02-12 Thread Carlos Sanchez
Actually I have almost get it to work, the manifest just seems not to be right yet. Latest code of my branch of the bundle plugin is at http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-bundle-plugin/ if you want to give it a try. On 2/12/07, Richard S. Hall <[EMAIL PROTECTED]> wrote:

Re: maven-bundle plugin

2007-02-12 Thread Richard S. Hall
From what Peter says, it doesn't sound like this is easily possible: This is not possible ... The bnd file == the manifest. You can't have the definition in two places. So or you use the PDE where the manifest describes your classpath (together with Eclipse magic), and then no bnd. Or you us

Re: maven-bundle-plugin proposal

2007-01-29 Thread Dale Peakall
Richard S. Hall wrote: Carlos Sanchez wrote: On 1/26/07, Alan D. Cabrera <[EMAIL PROTECTED]> wrote: One thing we could possibly do is to allow both: groupId=org.mortbay.jetty;artifactId=jetty,*;scope=runtime or In the spirit of not trying to make more work for you, I woul

Re: maven-bundle-plugin proposal

2007-01-28 Thread Richard S. Hall
Alex Karasulu wrote: I agree with Alan here. Maven can get ugly with you if you start to stray from it's conventions. It might be worth considering his approach. It seems that we just have to figure out exactly what its conventions are... However, I am more aligned with Chris, get it working

Re: maven-bundle-plugin proposal

2007-01-28 Thread Alex Karasulu
I agree with Alan here. Maven can get ugly with you if you start to stray from it's conventions. It might be worth considering his approach. Alex Richard S. Hall wrote: Carlos Sanchez wrote: On 1/26/07, Alan D. Cabrera <[EMAIL PROTECTED]> wrote: One thing we could possibly do is to allow

Re: maven-bundle-plugin proposal

2007-01-28 Thread Chris Custine
I suspect that those of us who like the simple OSGi style directives have spent a lot of time hand crafting OSGi manifest headers and don't want to switch gears inside this little block of instructions for BND. Those who want to see XML probably don't care much for this specific syntax (yet). I

Re: maven-bundle-plugin proposal

2007-01-28 Thread Richard S. Hall
Carlos Sanchez wrote: On 1/26/07, Alan D. Cabrera <[EMAIL PROTECTED]> wrote: One thing we could possibly do is to allow both: groupId=org.mortbay.jetty;artifactId=jetty,*;scope=runtime or In the spirit of not trying to make more work for you, I would be happy to contribute th

Re: maven-bundle-plugin proposal

2007-01-28 Thread Carlos Sanchez
On 1/26/07, Alan D. Cabrera <[EMAIL PROTECTED]> wrote: One thing we could possibly do is to allow both: groupId=org.mortbay.jetty;artifactId=jetty,*;scope=runtime or In the spirit of not trying to make more work for you, I would be happy to contribute the latter. A maven co

Re: maven-bundle-plugin proposal

2007-01-28 Thread Alan D. Cabrera
Plexus makes using XML in the POM crazy simple. It does all the work for you so avoiding XML does not save you a lot of time. Just pointing this out to those who have never made a maven plugin; it's pretty easy to do. Regards, Alan On Jan 27, 2007, at 3:04 PM, Chris Custine wrote: I ca

Re: maven-bundle-plugin proposal

2007-01-27 Thread Chris Custine
I can see merits to both approaches, but at the moment I think retaining the OSGi manifest directive style makes the most sense. I can see the XML syntax being an enhancement at some point as the tools evolve, but I just can't see worrying about it too much right now. Frankly, I think tooling fo

Re: maven-bundle-plugin proposal

2007-01-27 Thread Richard S . Hall
On Jan 27, 2007, at 1:47 AM, Alex Karasulu wrote: Richard S. Hall wrote: Alan D. Cabrera wrote: In the spirit of not trying to make more work for you, I would be happy to contribute the latter. Something to consider...thanks. What does this mean? It means that we will consider the solutio

Re: maven-bundle-plugin proposal

2007-01-26 Thread Alex Karasulu
Richard S. Hall wrote: Alan D. Cabrera wrote: In the spirit of not trying to make more work for you, I would be happy to contribute the latter. Something to consider...thanks. What does this mean? Alex

Re: maven-bundle-plugin proposal

2007-01-26 Thread Richard S. Hall
Alan D. Cabrera wrote: On Jan 26, 2007, at 1:21 PM, Richard S. Hall wrote: Alan D. Cabrera wrote: On Jan 26, 2007, at 12:16 PM, Richard S. Hall wrote: Red Blue Red Red Blue Red Perhaps we have others with viewpoints on this? One thing we could possibly do is to allow both:

Re: maven-bundle-plugin proposal

2007-01-26 Thread Alan D. Cabrera
On Jan 26, 2007, at 1:21 PM, Richard S. Hall wrote: Alan D. Cabrera wrote: On Jan 26, 2007, at 12:16 PM, Richard S. Hall wrote: Red Blue Red Red Blue Red Perhaps we have others with viewpoints on this? One thing we could possibly do is to allow both: groupId=org.mortbay.j

Re: maven-bundle-plugin proposal

2007-01-26 Thread Richard S. Hall
Alan D. Cabrera wrote: On Jan 26, 2007, at 12:16 PM, Richard S. Hall wrote: I agree that this is a reasonable argument, but this is only relevant if we assume that at some point in time someone else might want to parse the BND commands, which seems like an unlikely possibility. I'm not so s

Re: maven-bundle-plugin proposal

2007-01-26 Thread Felix Meschberger
Hi, I would like to second Richard in keeping the syntax. In contrast to many other maven plugins out there in plugin land, this one is a very simple frontend to a third party tool. The parameters inside the element are simply copied over to the parameter map for BND. I think it is valid to sta

Re: maven-bundle-plugin proposal

2007-01-26 Thread Alan D. Cabrera
On Jan 26, 2007, at 12:16 PM, Richard S. Hall wrote: Alan D. Cabrera wrote: On Jan 26, 2007, at 5:30 AM, Richard S. Hall wrote: This would allow people to easily achieve the same behavior as the old plugin by simply doing: *;scope=compile,*;scope=runtimedependency> Thus, this instru

Re: maven-bundle-plugin proposal

2007-01-26 Thread Richard S. Hall
Alan D. Cabrera wrote: On Jan 26, 2007, at 5:30 AM, Richard S. Hall wrote: This would allow people to easily achieve the same behavior as the old plugin by simply doing: *;scope=compile,*;scope=runtime Thus, this instruction would automatically embed any maven dependencies that were o

Re: maven-bundle-plugin proposal

2007-01-26 Thread Alan D. Cabrera
On Jan 26, 2007, at 5:30 AM, Richard S. Hall wrote: This would allow people to easily achieve the same behavior as the old plugin by simply doing: *;scope=compile,*;scope=runtimedependency> Thus, this instruction would automatically embed any maven dependencies that were of scope "com

Re: maven-bundle-plugin proposal

2007-01-26 Thread Richard S. Hall
One other issue that I think we need to follow up on, how should the plugin handle transitive dependencies of the bundle's dependencies? I see three options: 1. Ignore them and require the bundle developer to list them as explicit dependencies if they want to embed them. 2. Embed all t

Re: maven-bundle-plugin proposal

2007-01-26 Thread Richard S. Hall
Alan D. Cabrera wrote: On Jan 25, 2007, at 12:35 PM, Richard S. Hall wrote: Hello, Back in early December we had a discussion with Emil Eifrém, Aaron Siri, et al about how the new bundle plugin should deal with embedding (as opposed to inlining) dependent JAR files. Peter and I have finall

Re: maven-bundle-plugin proposal

2007-01-26 Thread Richard S. Hall
Peter Kriens wrote: RSH> No, it won't. Classes on the bundle class path will be considered part RSH> of the content of the bundle and BND will not generate imports for RSH> packages that are part of the content of the bundle. Unless you export them of course ... If you export them, BND won

Re: maven-bundle-plugin proposal

2007-01-25 Thread Alan D. Cabrera
On Jan 25, 2007, at 12:35 PM, Richard S. Hall wrote: Hello, Back in early December we had a discussion with Emil Eifrém, Aaron Siri, et al about how the new bundle plugin should deal with embedding (as opposed to inlining) dependent JAR files. Peter and I have finally had some time to di

Re: maven-bundle-plugin proposal

2007-01-25 Thread Emil Eifrém
On 1/25/07, Richard S. Hall <[EMAIL PROTECTED]> wrote: On Jan 25, 2007, at 4:27 PM, Emil Eifrém wrote: > Hey, thanks guys for coming back to this issue. The proposal is a good > step forward. One question tho. If I use a class that is provided by a > jar file on Bundle-Classpath... won't the plug

Re: maven-bundle-plugin proposal

2007-01-25 Thread Richard S . Hall
On Jan 25, 2007, at 4:27 PM, Emil Eifrém wrote: On 1/25/07, Richard S. Hall <[EMAIL PROTECTED]> wrote: This instruction would be used to match the specified Maven dependencies for embedding. Any matching dependency would have its JAR file embedded onto the resulting bundle JAR file and it wo

Re: maven-bundle-plugin proposal

2007-01-25 Thread Emil Eifrém
On 1/25/07, Richard S. Hall <[EMAIL PROTECTED]> wrote: This instruction would be used to match the specified Maven dependencies for embedding. Any matching dependency would have its JAR file embedded onto the resulting bundle JAR file and it would be appended to the Bundle-ClassPath header after

Re: maven-bundle-plugin and dependencies

2007-01-02 Thread Graham Leggett
On Tue, January 2, 2007 8:20 pm, Richard S. Hall wrote: > Generally speaking, the plugin will only include into your bundle JAR > file the packages you list in or . All > other packages will be imported. So, if you list packages from Eclipse > inside of these declarations, then you are telling th

Re: maven-bundle-plugin and dependencies

2007-01-02 Thread Richard S. Hall
Graham Leggett wrote: I am having some conceptual problems with the maven-bundle-plugin and the way dependencies are handled. I have successfully managed to use the maven-bundle-plugin to produce an OSGI bundle from an Eclipse RCP application that we use. The nett result is a single bundle that'