You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Mikael Åsberg (JIRA)" <ji...@apache.org> on 2014/11/12 15:04:33 UTC

[jira] [Updated] (FELIX-4691) Empty string value for property causes build failure

     [ https://issues.apache.org/jira/browse/FELIX-4691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mikael Åsberg updated FELIX-4691:
---------------------------------
    Attachment: servicepropertytest.zip

Minimal Maven sample project illustrating the failure. See it by issuing "mvn clean install", change to maven-bundle-plugin version 2.4.0 and "mvn clean install" does not fail.

> Empty string value for property causes build failure
> ----------------------------------------------------
>
>                 Key: FELIX-4691
>                 URL: https://issues.apache.org/jira/browse/FELIX-4691
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.5.3
>            Reporter: Mikael Åsberg
>         Attachments: servicepropertytest.zip
>
>
> Hi, when I upgraded from maven-bundle-plugin version 2.4.0 to version 2.5.3, I noticed a build failure when I performed "mvn clean install" on one of my OSGi services. The error is related to a service property of type String where the value has been set to empty string:
> @Property (value = "")
> private static final String MY_PROPERTY = "foo";
> The error is:
> [INFO] --- maven-bundle-plugin:2.5.3:bundle (default-bundle) @ servicepropertytest ---
> [ERROR] Bundle org.mindcooler:servicepropertytest:bundle:0.1.0 : No value after '=' sign for attribute foo
> [ERROR] Error(s) found in bundle configuration
> I see the same problem versions 2.5.2, 2.5.1, and 2.5.0 of maven-bundle-plugin, but if I go back to version 2.4.0 of maven-bundle-plugin, but change nothing else, the problem disappears.
> Have I found a problem here or is my code incorrect?
> I have attached a minimal sample Maven project



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)