Return-Path: Delivered-To: apmail-incubator-felix-dev-archive@www.apache.org Received: (qmail 84803 invoked from network); 7 Nov 2006 13:58:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2006 13:58:56 -0000 Received: (qmail 45573 invoked by uid 500); 7 Nov 2006 13:59:06 -0000 Delivered-To: apmail-incubator-felix-dev-archive@incubator.apache.org Received: (qmail 45539 invoked by uid 500); 7 Nov 2006 13:59:06 -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 45524 invoked by uid 99); 7 Nov 2006 13:59:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 05:59:05 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of fmeschbe@gmail.com designates 64.233.162.206 as permitted sender) Received: from [64.233.162.206] (HELO nz-out-0102.google.com) (64.233.162.206) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 05:58:50 -0800 Received: by nz-out-0102.google.com with SMTP id z6so1075405nzd for ; Tue, 07 Nov 2006 05:58:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=hFHhrbK1bEZRSZIkZj8RTtdowfxUrJE0GvfEEjsGuQrdFD+y/e5StpAlEPxza7rU1r1D7HQA+hdW/StWhMJU9+CrALKwDKp7Aa1F1X/7QmLRQm7ltXPvFvepnAA0c9o6AMaWoicd8rLI02DuwAWcgROS61ohkUC5KKPqbHcdODo= Received: by 10.65.239.13 with SMTP id q13mr7785591qbr.1162907909292; Tue, 07 Nov 2006 05:58:29 -0800 (PST) Received: by 10.65.253.9 with HTTP; Tue, 7 Nov 2006 05:58:29 -0800 (PST) Message-ID: Date: Tue, 7 Nov 2006 14:58:29 +0100 From: "Felix Meschberger" Sender: fmeschbe@gmail.com To: felix-dev@incubator.apache.org Subject: Re: [jira] Commented: (FELIXM2-10) maven-bundle-plugin: Failures if src or parts of it are missing In-Reply-To: <45503CBE.1050006@ungoverned.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <32937868.1162884410656.JavaMail.jira@brutus> <45503CBE.1050006@ungoverned.org> X-Google-Sender-Auth: 5a4eb8434ecf1b1e X-Virus-Checked: Checked by ClamAV on apache.org 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 :-) Regards Felix > > -> 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(".", outputDirectory)" > >> * 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. > >> > > > > >