Mikael Åsberg created FELIX-4691:
------------------------------------

             Summary: 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


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)

Reply via email to