[ 
https://issues.apache.org/jira/browse/KARAF-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161909#comment-13161909
 ] 

David Jencks commented on KARAF-1048:
-------------------------------------

I asked on the felix list about including more m2e metadata in maven-bundle 
plugin and Stuart McCulloch (who ought to know :-) said...

1.  At Karaf someone recently complained about m2e integration and pointed to 
http://wiki.eclipse.org/M2E_plugin_execution_not_covered which IIUC suggests 
that the maven-bundle-plugin could include some m2e specific metadata to help 
m2e figure out what it does.  The karaf discussion is here: 
https://issues.apache.org/jira/browse/KARAF-1048  Anyone know anything about 
this?

The m2e Tycho Project Configurators support the bundle lifecycle via the 
maven-bundle-plugin, including regenerating the manifest when classes or bnd 
instructions change and integration with the PDE launcher:

  
https://repository.sonatype.org/content/repositories/forge-sites/m2eclipse-tycho/0.6.0/N/0.6.0.201110151902/
  ( update site, also available for installation via 
Eclipse->Preferences...->Maven->Discovery->Open Catalog )

  https://github.com/sonatype/m2eclipse-tycho/

PS. if you see the warning about missing lifecycle mappings when importing your 
project just use the "auto select" button (or quick fix on the pom) and it 
should search for available connectors on the online catalog.


                
> make pom.xml eclipse 3.7 m2e friendly
> -------------------------------------
>
>                 Key: KARAF-1048
>                 URL: https://issues.apache.org/jira/browse/KARAF-1048
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 2.2.4, 3.0.0
>            Reporter: Andrei Pozolotin
>            Assignee: Andreas Pieber
>             Fix For: 3.0.0
>
>
> currently it is impossible to import karaf projects from svn in 
> eclipse 3.7 with m2e integration w/o need to manually
> provide m2e life cycle entries such as this,
> for all kinds of plugins
> ##################################
>                 <!--This plugin's configuration is used to store Eclipse m2e 
> settings only. It has no influence on the Maven build itself.-->
>                 <plugin>
>                       <groupId>org.eclipse.m2e</groupId>
>                       <artifactId>lifecycle-mapping</artifactId>
>                       <version>1.0.0</version>
>                       <configuration>
>                               <lifecycleMappingMetadata>
>                                       <pluginExecutions>
>                                               <pluginExecution>
>                                                       <pluginExecutionFilter>
>                                                               <groupId>
>                                                                       
> org.apache.felix
>                                                               </groupId>
>                                                               <artifactId>
>                                                                       
> maven-bundle-plugin
>                                                               </artifactId>
>                                                               <versionRange>
>                                                                       [2.3.5,)
>                                                               </versionRange>
>                                                               <goals>
>                                                                       
> <goal>cleanVersions</goal>
>                                                               </goals>
>                                                       </pluginExecutionFilter>
>                                                       <action>
>                                                               
> <ignore></ignore>
>                                                       </action>
>                                               </pluginExecution>
>                                       </pluginExecutions>
>                               </lifecycleMappingMetadata>
>                       </configuration>
>                 </plugin>

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

        

Reply via email to