felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konrad Windszus (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-5258) Add a new MOJO which verifies the bundle integrity
Date Wed, 18 May 2016 11:23:12 GMT

    [ https://issues.apache.org/jira/browse/FELIX-5258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15288816#comment-15288816
] 

Konrad Windszus commented on FELIX-5258:
----------------------------------------

That link alone should be extended, because maven-bundle-plugin applies other defaults than
bnd does. bnd assumes "*" while maven-bundle-plugin sets it differently (set of packages in
your local Java sources, excluding the default package '.' and any packages containing 'impl'
or 'internal'., see also https://github.com/apache/felix/blob/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java#L1893).

> 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 Plugin_ to produce
the bundle misinterpret the configuration settings, producing a {{MANIFEST}} file with invalid
OSGi entries, i.e. given a project with the following structure:
> {noformat}
> myproject
> ├── src
> │   ├── main
> │   │   ├── java
> │   │   │   └── org
> │   │   │       └── apache
> │   │   │           ├── acme
> │   │   │           │   ├── utils
> {noformat}
> and the {{pom.xml}} is wrongly configured as:
> {noformat}
> <plugin>
>                 <groupId>org.apache.felix</groupId>
>                 <artifactId>maven-bundle-plugin</artifactId>
>                 <extensions>true</extensions>
>                 <configuration>
>                     <instructions>
>                         <Export-Package>
>                             nothing
>                         </Export-Package>
>                     </instructions>
>                 </configuration>
>             </plugin>
> {noformat}
> it makes the {{Export-Package}} header resulting as {{Export-Package: nothing}}.
> A MOJO, invoked during the {{verify}} phase, would be very useful to check 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)

Mime
View raw message