You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "James Davis (JIRA)" <ji...@apache.org> on 2012/09/03 19:05:07 UTC

[jira] [Created] (FELIX-3654) Maven bundle plugin does not set Bundle-RequiredExecutionEnvironment in manifest

James Davis created FELIX-3654:
----------------------------------

             Summary: Maven bundle plugin does not set Bundle-RequiredExecutionEnvironment in manifest
                 Key: FELIX-3654
                 URL: https://issues.apache.org/jira/browse/FELIX-3654
             Project: Felix
          Issue Type: Bug
          Components: Maven Bundle Plugin
    Affects Versions: maven-bundle-plugin-2.3.7
         Environment: kubuntu 12.04, oracle java 1.6
            Reporter: James Davis


When I use the maven bundle plugin to create an osgi bundle, I get the following warning in eclipse:
No required execution environment has been set

Looking into it, there is the Bundle-RequiredExecutionEnvironment value that is not being set into the manifest.  The plugin should provide a way to set this.

--
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] [Closed] (FELIX-3654) Maven bundle plugin does not set Bundle-RequiredExecutionEnvironment in manifest

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

James Davis closed FELIX-3654.
------------------------------

    Resolution: Not A Problem

Ok, after doing some major digging, I found the instruction section where this can be specified.  The documentation for this maven plugin could use some updating to explain how to set things like these better.
                
> Maven bundle plugin does not set Bundle-RequiredExecutionEnvironment in manifest
> --------------------------------------------------------------------------------
>
>                 Key: FELIX-3654
>                 URL: https://issues.apache.org/jira/browse/FELIX-3654
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.7
>         Environment: kubuntu 12.04, oracle java 1.6
>            Reporter: James Davis
>              Labels: maven
>
> When I use the maven bundle plugin to create an osgi bundle, I get the following warning in eclipse:
> No required execution environment has been set
> Looking into it, there is the Bundle-RequiredExecutionEnvironment value that is not being set into the manifest.  The plugin should provide a way to set this.

--
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-3654) Maven bundle plugin does not set Bundle-RequiredExecutionEnvironment in manifest

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

Stuart McCulloch commented on FELIX-3654:
-----------------------------------------

This is currently covered by the "Features" section of the existing documentation at http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html:

   "BND recognizes three types of instructions:
    1. Manifest headers - Any instruction that starts with a capital letter will appear in the resulting bundle's manifest file; the value for the header will either be copied, augmented, or generated by BND depending on the instruction."

Improvements to this documentation can be added as comments to the wiki page at https://cwiki.apache.org/confluence/x/aX
                
> Maven bundle plugin does not set Bundle-RequiredExecutionEnvironment in manifest
> --------------------------------------------------------------------------------
>
>                 Key: FELIX-3654
>                 URL: https://issues.apache.org/jira/browse/FELIX-3654
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.7
>         Environment: kubuntu 12.04, oracle java 1.6
>            Reporter: James Davis
>              Labels: maven
>
> When I use the maven bundle plugin to create an osgi bundle, I get the following warning in eclipse:
> No required execution environment has been set
> Looking into it, there is the Bundle-RequiredExecutionEnvironment value that is not being set into the manifest.  The plugin should provide a way to set this.

--
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-3654) Maven bundle plugin does not set Bundle-RequiredExecutionEnvironment in manifest

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

Stuart McCulloch commented on FELIX-3654:
-----------------------------------------

Just set the header in the instructions and it will get merged into the final manifest:

      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Bundle-RequiredExecutionEnvironment>J2SE-1.5,JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
          </instructions>
        </configuration>
      </plugin>

Note that this header is not required by OSGi (which is why Eclipse only shows a warning and not an error).
                
> Maven bundle plugin does not set Bundle-RequiredExecutionEnvironment in manifest
> --------------------------------------------------------------------------------
>
>                 Key: FELIX-3654
>                 URL: https://issues.apache.org/jira/browse/FELIX-3654
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.7
>         Environment: kubuntu 12.04, oracle java 1.6
>            Reporter: James Davis
>              Labels: maven
>
> When I use the maven bundle plugin to create an osgi bundle, I get the following warning in eclipse:
> No required execution environment has been set
> Looking into it, there is the Bundle-RequiredExecutionEnvironment value that is not being set into the manifest.  The plugin should provide a way to set this.

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