Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22BCFDB2D for ; Wed, 3 Oct 2012 22:19:57 +0000 (UTC) Received: (qmail 95977 invoked by uid 500); 3 Oct 2012 22:19:56 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 95919 invoked by uid 500); 3 Oct 2012 22:19:55 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 95910 invoked by uid 99); 3 Oct 2012 22:19:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 22:19:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of allen.lau@gmail.com designates 209.85.223.177 as permitted sender) Received: from [209.85.223.177] (HELO mail-ie0-f177.google.com) (209.85.223.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 22:19:51 +0000 Received: by ieje14 with SMTP id e14so24008357iej.22 for ; Wed, 03 Oct 2012 15:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5Cz1yUwr2/hzuKWDma6yWjTXxSeu6hKXAR2Mm6lzwJQ=; b=yzGCoSjSvH+sG4ftvS2ijIC22ujivD9NRjan4xo1FLzp9CRSJGNwMQ2uMQV7vCLAMw JaFXC8NlrLqQ9pXDRgUo7yZHCRKPpPRduI2Yg9/7yZFev6jWO8eutECd/7PQ9FZN9v+V di8qob2UgYcIbN1IX06B/olPUf7gCGzivqJUMACSsMKzcm/7O/Q+kspKK0gdvRpIYbTr edR5VAc1mfwfiQEso9AAu7d7UaJf7OcvelLJNsIUwvb6IwgnM63/4EtRrONMGxfNWEYp tBeMaIDbCF4kG45AeZoojYPSD2vN7qbUpbEVcEMTz4gUUB8Jn/xI+rEGg3W/r82TB+oU +y5A== MIME-Version: 1.0 Received: by 10.42.109.194 with SMTP id m2mr2733124icp.48.1349302770618; Wed, 03 Oct 2012 15:19:30 -0700 (PDT) Received: by 10.42.145.200 with HTTP; Wed, 3 Oct 2012 15:19:30 -0700 (PDT) In-Reply-To: <506C32F4.8060201@artenum.com> References: <506C32F4.8060201@artenum.com> Date: Wed, 3 Oct 2012 15:19:30 -0700 Message-ID: Subject: Re: Maven Bundle Plugin incompatible with SVN revision bundles From: Allen Lau To: users@felix.apache.org Content-Type: multipart/alternative; boundary=20cf303dd33e56517604cb2f0825 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303dd33e56517604cb2f0825 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable buildnumber-maven-plugin definitely works. Use maven-jar-plugin or maven-bundle-plugin depending on your package type. Don't mix them up. I would recommend that you use the "bundle" type and the maven-bundle-plugin for building OSGi apps. Try turning on debug with mvn -X to see what's going on. On Wed, Oct 3, 2012 at 5:43 AM, Beno=C3=AEt Thi=C3=A9bault wrote: > Hi everyone, > > I don't know if this mailing list is the right place to post my question.= .. > > I am developing OSGi applications that are managed by Maven (and > maven-bundle-plugin in particular) and I would like to provide the SVN > revision number in the bundle MANIFEST. > > There are two Maven plugins that I am aware of that provide this > functionality. They are namely: > - maven-svn-revision-number-**plugin, http://code.google.com/p/** > maven-svn-revision-number-**plugin/ > - buildnumber-maven-plugin, http://mojo.codehaus.org/** > buildnumber-maven-plugin/ > > While both of them work perfectly on standard jar Mave= n > modules, they both fail with bundle Maven modules. > > How do you do this in OSGi context? Are there other Maven plugins > available that work well with BND? If this is a BND bug, can it be fixed? > > I have asked questions on the subject here http://stackoverflow.com/** > questions/12604161/error-**while-adding-svn-revision-in-** > jar-manifest-with-maven-and-**maven-bundle-plugand there > https://groups.google.com/**forum/?fromgroups=3D#!topic/** > maven-svn-revision-number-**plugin/yvHvn1tS_2Mwi= thout success so far. > > Kind regards, > > Beno=C3=AEt > --20cf303dd33e56517604cb2f0825--