[
https://issues.apache.org/jira/browse/FELIX-6572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Piotr Karwasz updated FELIX-6572:
---------------------------------
Description:
FELIX-3347 only partially solves the problem of various properties leaking into
the manifest. For example upper-case Maven {{<properties>}} still end up in the
manifest.
The easiest solution is to filter out all upper-case properties from
[BundlePlugin#getDefaultProperties|https://github.com/apache/felix-dev/blob/36e48aeb2dc3a7035e7a5c3276b7d0bc4617a97d/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java#L1799].
I can provide a PR in this direction.
was:
On 10 Feb 2012, at 08:01, Tuomas Kiviaho wrote:
I'm having the exact same problem. Any news what might cause this. I upgraded
the bundle plugin from 2.0.1 to 2.3.6 and this started to appear.
See this thread
http://www.mail-archive.com/[email protected]/msg11754.html for more
discussion.
I tracked the cause down to https://issues.apache.org/jira/browse/FELIX-2449
which added the Maven session execution properties to the properties passed to
bnd.
This change was needed so people could use command-line properties in bnd
macros, otherwise you could get inconsistent results between Maven and bnd
filtering.
Perhaps we should simply avoid adding any Maven session execution properties
that start with an upper-case letter (bnd automatically copies these to the
manifest).
Reminder: you can tell bnd to avoid copying entries to the manifest by listing
the headers in the <_removeheaders> instruction.
> Upper-case Maven properties end up in final manifest
> ----------------------------------------------------
>
> Key: FELIX-6572
> URL: https://issues.apache.org/jira/browse/FELIX-6572
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-2.3.5, maven-bundle-plugin-2.3.6
> Reporter: Piotr Karwasz
> Assignee: Stuart McCulloch
> Priority: Blocker
> Fix For: maven-bundle-plugin-2.3.7
>
>
> FELIX-3347 only partially solves the problem of various properties leaking
> into the manifest. For example upper-case Maven {{<properties>}} still end up
> in the manifest.
> The easiest solution is to filter out all upper-case properties from
> [BundlePlugin#getDefaultProperties|https://github.com/apache/felix-dev/blob/36e48aeb2dc3a7035e7a5c3276b7d0bc4617a97d/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java#L1799].
> I can provide a PR in this direction.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)