Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B114E200ACA for ; Wed, 18 May 2016 11:03:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AFBFF1609B1; Wed, 18 May 2016 09:03:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0A315160A00 for ; Wed, 18 May 2016 11:03:13 +0200 (CEST) Received: (qmail 27953 invoked by uid 500); 18 May 2016 09:03:13 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 27837 invoked by uid 99); 18 May 2016 09:03:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2016 09:03:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DA8DA2C14E1 for ; Wed, 18 May 2016 09:03:12 +0000 (UTC) Date: Wed, 18 May 2016 09:03:12 +0000 (UTC) From: "Carsten Ziegeler (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (FELIX-5258) Add a new MOJO which verifies the bundle integrity MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 18 May 2016 09:03:14 -0000 [ https://issues.apache.org/jira/browse/FELIX-5258?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler resolved FELIX-5258. ------------------------------------- Resolution: Fixed Thanks for your patch, Simo - it's applied > Add a new MOJO which verifies the bundle integrity > -------------------------------------------------- > > Key: FELIX-5258 > URL: https://issues.apache.org/jira/browse/FELIX-5258 > Project: Felix > Issue Type: New Feature > Components: Maven Bundle Plugin > Affects Versions: maven-bundle-plugin-3.0.1 > Reporter: Simone Tripodi > Assignee: Carsten Ziegeler > Fix For: maven-bundle-plugin-3.1.0 > > Attachments: FELIX-5258.patch, FELIX-5258.patch.1 > > > In my company it happens sometimes that people using the _Maven Bundle Pl= ugin_ to produce the bundle misinterpret the configuration settings, produc= ing a {{MANIFEST}} file with invalid OSGi entries, i.e. given a project wit= h the following structure: > {noformat} > myproject > =E2=94=9C=E2=94=80=E2=94=80 src > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 main > =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 j= ava > =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94= =94=E2=94=80=E2=94=80 org > =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2= =94=94=E2=94=80=E2=94=80 apache > =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 = =E2=94=9C=E2=94=80=E2=94=80 acme > =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 = =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 utils > {noformat} > and the {{pom.xml}} is wrongly configured as: > {noformat} > > org.apache.felix > maven-bundle-plugin > true > > > > nothing > > > > > {noformat} > it makes the {{Export-Package}} header resulting as {{Export-Package: not= hing}}. > A MOJO, invoked during the {{verify}} phase, would be very useful to chec= k the target bundle integrity and prevent this kind of wrong exports. > Patch is coming. -- This message was sent by Atlassian JIRA (v6.3.4#6332)