Return-Path: Delivered-To: apmail-incubator-felix-dev-archive@www.apache.org Received: (qmail 91548 invoked from network); 9 Mar 2007 08:15:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2007 08:15:20 -0000 Received: (qmail 92359 invoked by uid 500); 9 Mar 2007 08:15:29 -0000 Delivered-To: apmail-incubator-felix-dev-archive@incubator.apache.org Received: (qmail 92324 invoked by uid 500); 9 Mar 2007 08:15:28 -0000 Mailing-List: contact felix-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: felix-dev@incubator.apache.org Delivered-To: mailing list felix-dev@incubator.apache.org Received: (qmail 92313 invoked by uid 99); 9 Mar 2007 08:15:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 00:15:28 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of fmeschbe@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 00:15:17 -0800 Received: by ug-out-1314.google.com with SMTP id y2so1437624uge for ; Fri, 09 Mar 2007 00:14:56 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=BqnmQ8Yn3jJI2pFUSPoDODKk1rrh7xmLd93uKNlIRHxO1DTLpuJKI0wASB1IQ1OEKG8s1g4pLUROiyIkAkW9aL4w9rBzOk/eLofqx48DIxaD8VwhgXiHl9mqSRbnxkFewBE5BEjdl9kqGcyYKkmly+ig73eXGjFEphiecHNzAlk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=c1kFb7qkqEddCSRTti3PdCyFzHQWGQca4yPVhcn3SiW+e2nOXG6qEc0cuoQnMKzVa1M+w4xxGTQZWKVoHlTTdKvwh43thFn7/0N3yq0F1joKG0ddYIdPHhysS1+6h2X7ZAFvhwuWt7Cwzh1OcOXt61iN58tSd02cVDFZZbUDpKs= Received: by 10.114.182.1 with SMTP id e1mr463400waf.1173428094712; Fri, 09 Mar 2007 00:14:54 -0800 (PST) Received: by 10.114.72.20 with HTTP; Fri, 9 Mar 2007 00:14:49 -0800 (PST) Message-ID: Date: Fri, 9 Mar 2007 09:14:49 +0100 From: "Felix Meschberger" Sender: fmeschbe@gmail.com To: felix-dev@incubator.apache.org Subject: Re: maven-bundle-plugin, wrapping and excludeTransitive In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_224705_26085728.1173428089607" References: <87eb8aee0703080518n5fb818absd3e7f3ad4a9fbab5@mail.gmail.com> X-Google-Sender-Auth: 8beaf24ec4d53058 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_224705_26085728.1173428089607 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 the war plugin for that matter). In this sense, and as the OSGi bundleing should really only package the contents of specific libraries, I think an option to the maven-bundle-plugi= n to ignore transitive dependencies would probably make sense. So you have all advantages on your side: you package only what you explicitly declare but maven projects do not loose transitive dependencies. Regards Felix On 3/9/07, Hampel, Michael wrote: > > > Hello Alin, > > I don't understand why you would have to exclude the dependencies - as fa= r > as I > Understood the maven-bundle plugin is not doing anything with the maven > dependencies. > If the dependencies are excluded (like in the hibernate osgi pom) and I > add the hibernate > Osgi jar as a dependency to my project, I would loose the transitive > capability of maven as the > Transitive dependencies of hibernate are not added anymore, e.g.: when > doing eclipse:eclipse. > On the other side it makes sense to exclude the dependencies, because I > also will have to wrap the > Hibernate dependencies to become osgi bundles - so the jta dependencies > will change to a jta-osgi dependency.... > Does this mean I have to forget about maven's transitive capabilites? > > Maybe I am thinking completely wrong here - but probably you could shed > some light, > > Thanx, > > Michael > > > > > > > -----Urspr=FCngliche Nachricht----- > Von: Alin Dreghiciu [mailto:adreghiciu@gmail.com] > Gesendet: Donnerstag, 08. M=E4rz 2007 14:18 > An: felix-dev@incubator.apache.org > Betreff: maven-bundle-plugin, wrapping and excludeTransitive > > About jar wrapping: > > Most of the time (at least in the cases I had) you would like to wrap onl= y > the content of the jar you are targeting and not also the transitive > dependencies that the targeted jar has. You can do this in at least two > ways: > 1. add to the dependency. This is verbose for the case that > the > targeted jar has extensive dependencies and irrelevant to the process of > wrapping > 2. set the Export-package directive to export only those packages that > you > want. here you have to know the internals of the package and if the jar > has > some resources as licences, xmls' outside the main package you have to ad= d > them one by one. > > So, here I am proposing a new configuration option: excludeTransitive tha= t > is suppose to exclude the transitive artifacts if set to true. > > An example implementation can be found at the following location: > > http://maven.apache.org/plugins/maven-dependency-plugin/xref/org/apache/m= aven/plugin/dependency/utils/filters/TransitivityFilter.html > > Alin Dreghiciu > > PS. Maven does not support a property of the articat as isTransitive() > > < > http://maven.apache.org/plugins/maven-dependency-plugin/xref/org/apache/m= aven/plugin/dependency/utils/filters/TransitivityFilter.html > > > ------=_Part_224705_26085728.1173428089607--