You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Ivan Dubrov (Created) (JIRA)" <ji...@apache.org> on 2012/02/14 21:11:59 UTC

[jira] [Created] (FELIX-3352) Maven Bundle Plugin ignores resource properties configured inside section

Maven Bundle Plugin ignores resource properties configured inside <filters> section
-----------------------------------------------------------------------------------

                 Key: FELIX-3352
                 URL: https://issues.apache.org/jira/browse/FELIX-3352
             Project: Felix
          Issue Type: Bug
          Components: Maven Bundle Plugin
    Affects Versions: maven-bundle-plugin-2.3.6
            Reporter: Ivan Dubrov


maven-bundle-plugin does not pass properties from the files configured inside <build><filters> section to the BND. As a result, all properties configured in external filter files are unresolved in the final bundle.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (FELIX-3352) Maven Bundle Plugin ignores resource properties configured inside section

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493021#comment-13493021 ] 

Felix Meschberger edited comment on FELIX-3352 at 11/8/12 7:35 AM:
-------------------------------------------------------------------

I think the problem is related to the bundle plugin actually picking up the resource from src/main/resources instead of from target/classes where the resources are placed.

As a workaround you can configure maven to copy the resources into a special location, e.g. target/resources, and the instruct the bundle plugin to pick them up from there using the <Include-Resource> directive.
                
      was (Author: fmeschbe):
    I think the problem is related to the bundle plugin actually picking up the resource from src/main/resources instead of from target/classes where the resources are placed.

As a workaround you can configure maven copy the resources into a special location, e.g. target/resources, and the instruct the bundle plugin to pick them up from there using the <Include-Resource> directive.
                  
> Maven Bundle Plugin ignores resource properties configured inside <filters> section
> -----------------------------------------------------------------------------------
>
>                 Key: FELIX-3352
>                 URL: https://issues.apache.org/jira/browse/FELIX-3352
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.6
>            Reporter: Ivan Dubrov
>         Attachments: felix-3352.patch, felix-3352.zip
>
>
> maven-bundle-plugin does not pass properties from the files configured inside <build><filters> section to the BND. As a result, all properties configured in external filter files are unresolved in the final bundle.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (FELIX-3352) Maven Bundle Plugin ignores resource properties configured inside section

Posted by "Hayo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13492531#comment-13492531 ] 

Hayo commented on FELIX-3352:
-----------------------------

The problem also applies maven-bundle-plugin-2.3.7.
Until resolution, a configurational workaround would be appreciated.

                
> Maven Bundle Plugin ignores resource properties configured inside <filters> section
> -----------------------------------------------------------------------------------
>
>                 Key: FELIX-3352
>                 URL: https://issues.apache.org/jira/browse/FELIX-3352
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.6
>            Reporter: Ivan Dubrov
>         Attachments: felix-3352.patch, felix-3352.zip
>
>
> maven-bundle-plugin does not pass properties from the files configured inside <build><filters> section to the BND. As a result, all properties configured in external filter files are unresolved in the final bundle.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (FELIX-3352) Maven Bundle Plugin ignores resource properties configured inside section

Posted by "Ivan Dubrov (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Dubrov updated FELIX-3352:
-------------------------------

    Attachment: felix-3352.zip

Attached example project. After "mvn clean package", look inside generate JAR file. One property (pom.property) is properly interpolated in the test.txt, but the other one (external.property) is not.

If you change the packaging to "jar", both properties are properly interpolated.
                
> Maven Bundle Plugin ignores resource properties configured inside <filters> section
> -----------------------------------------------------------------------------------
>
>                 Key: FELIX-3352
>                 URL: https://issues.apache.org/jira/browse/FELIX-3352
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.6
>            Reporter: Ivan Dubrov
>         Attachments: felix-3352.zip
>
>
> maven-bundle-plugin does not pass properties from the files configured inside <build><filters> section to the BND. As a result, all properties configured in external filter files are unresolved in the final bundle.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (FELIX-3352) Maven Bundle Plugin ignores resource properties configured inside section

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493021#comment-13493021 ] 

Felix Meschberger commented on FELIX-3352:
------------------------------------------

I think the problem is related to the bundle plugin actually picking up the resource from src/main/resources instead of from target/classes where the resources are placed.

As a workaround you can configure maven copy the resources into a special location, e.g. target/resources, and the instruct the bundle plugin to pick them up from there using the <Include-Resource> directive.
                
> Maven Bundle Plugin ignores resource properties configured inside <filters> section
> -----------------------------------------------------------------------------------
>
>                 Key: FELIX-3352
>                 URL: https://issues.apache.org/jira/browse/FELIX-3352
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.6
>            Reporter: Ivan Dubrov
>         Attachments: felix-3352.patch, felix-3352.zip
>
>
> maven-bundle-plugin does not pass properties from the files configured inside <build><filters> section to the BND. As a result, all properties configured in external filter files are unresolved in the final bundle.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (FELIX-3352) Maven Bundle Plugin ignores resource properties configured inside section

Posted by "Stuart McCulloch (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208003#comment-13208003 ] 

Stuart McCulloch commented on FELIX-3352:
-----------------------------------------

Can you attach an example project? A patch would be even better ;)
                
> Maven Bundle Plugin ignores resource properties configured inside <filters> section
> -----------------------------------------------------------------------------------
>
>                 Key: FELIX-3352
>                 URL: https://issues.apache.org/jira/browse/FELIX-3352
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.6
>            Reporter: Ivan Dubrov
>
> maven-bundle-plugin does not pass properties from the files configured inside <build><filters> section to the BND. As a result, all properties configured in external filter files are unresolved in the final bundle.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (FELIX-3352) Maven Bundle Plugin ignores resource properties configured inside section

Posted by "Hayo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493123#comment-13493123 ] 

Hayo commented on FELIX-3352:
-----------------------------

Proposed workaround is feasible for me. Thanks.
                
> Maven Bundle Plugin ignores resource properties configured inside <filters> section
> -----------------------------------------------------------------------------------
>
>                 Key: FELIX-3352
>                 URL: https://issues.apache.org/jira/browse/FELIX-3352
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.6
>            Reporter: Ivan Dubrov
>         Attachments: felix-3352.patch, felix-3352.zip
>
>
> maven-bundle-plugin does not pass properties from the files configured inside <build><filters> section to the BND. As a result, all properties configured in external filter files are unresolved in the final bundle.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (FELIX-3352) Maven Bundle Plugin ignores resource properties configured inside section

Posted by "Ivan Dubrov (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Dubrov updated FELIX-3352:
-------------------------------

    Attachment: felix-3352.patch

Attached patch against svn trunk.
                
> Maven Bundle Plugin ignores resource properties configured inside <filters> section
> -----------------------------------------------------------------------------------
>
>                 Key: FELIX-3352
>                 URL: https://issues.apache.org/jira/browse/FELIX-3352
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.6
>            Reporter: Ivan Dubrov
>         Attachments: felix-3352.patch, felix-3352.zip
>
>
> maven-bundle-plugin does not pass properties from the files configured inside <build><filters> section to the BND. As a result, all properties configured in external filter files are unresolved in the final bundle.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira