[ 
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

Reply via email to