You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Mark Derricutt (JIRA)" <ji...@apache.org> on 2015/01/27 03:46:34 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14292888#comment-14292888 ] 

Mark Derricutt commented on FELIX-4691:
---------------------------------------

Has anyone happened to look at this ticket at all? I seem to see this error occurring on one of my projects - but ONLY on the builder server, and not on my local builds - very strange.

> 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)