<div dir="ltr">Someone want to update our forge2 eclipse plugin to use this instead of maven-dependency-plugin ?<br><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Fred Bricon</b> <span dir="ltr"><<a href="mailto:fbricon@gmail.com">fbricon@gmail.com</a>></span><br>
Date: Wed, Feb 6, 2013 at 1:39 PM<br>Subject: maven bundle config<br>To: <a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>, Koen Aers <<a href="mailto:koen.aers@jboss.com">koen.aers@jboss.com</a>><br>
<br><br><div>Here's an example </div><div><br></div><div><project xmlns="<a href="http://maven.apache.org/POM/4.0.0" target="_blank">http://maven.apache.org/POM/4.0.0</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"</div>
<div><div><span style="white-space:pre-wrap">        </span>xsi:schemaLocation="<a href="http://maven.apache.org/POM/4.0.0" target="_blank">http://maven.apache.org/POM/4.0.0</a> <a href="http://maven.apache.org/xsd/maven-4.0.0.xsd" target="_blank">http://maven.apache.org/xsd/maven-4.0.0.xsd</a>"></div>
<div><span style="white-space:pre-wrap">        </span><modelVersion>4.0.0</modelVersion></div><div><span style="white-space:pre-wrap">        </span><groupId>foo.bar</groupId></div>
<div><span style="white-space:pre-wrap">        </span><artifactId>my-bundle</artifactId></div><div><span style="white-space:pre-wrap">        </span><version>0.0.1-SNAPSHOT</version></div>
<div><span style="white-space:pre-wrap">        </span><packaging>bundle</packaging></div><div><br></div><div><span style="white-space:pre-wrap">        </span><properties></div><div>
<span style="white-space:pre-wrap">                </span><osgi-version-qualifier>${maven.build.timestamp}</osgi-version-qualifier></div><div><span style="white-space:pre-wrap">        </span></properties></div>
<div><span style="white-space:pre-wrap">        </span><dependencies></div><div><span style="white-space:pre-wrap">                </span><dependency></div><div><span style="white-space:pre-wrap">                        </span><groupId>org.jboss.forge</groupId></div>
<div><span style="white-space:pre-wrap">                        </span><artifactId>forge-javaee-impl</artifactId></div><div><span style="white-space:pre-wrap">                        </span><version>1.2.0.Final</version></div>
<div><span style="white-space:pre-wrap">                </span></dependency></div><div><span style="white-space:pre-wrap">        </span></dependencies></div><div><span style="white-space:pre-wrap">        </span><build></div>
<div><span style="white-space:pre-wrap">                </span><pluginManagement></div><div><span style="white-space:pre-wrap">                        </span><plugins></div><div><span style="white-space:pre-wrap">                                </span><plugin></div>
<div><span style="white-space:pre-wrap">                                        </span><groupId>org.apache.felix</groupId></div><div><span style="white-space:pre-wrap">                                        </span><artifactId>maven-bundle-plugin</artifactId></div>
<div><span style="white-space:pre-wrap">                                        </span><version>2.3.7</version></div><div><span style="white-space:pre-wrap">                                        </span><extensions>true</extensions></div>
<div><span style="white-space:pre-wrap">                                        </span><configuration></div><div><span style="white-space:pre-wrap">                                                </span><manifestLocation>META-INF</manifestLocation></div>
<div><span style="white-space:pre-wrap">                                                </span><instructions></div><div><span style="white-space:pre-wrap">                                                        </span><Embed-Transitive>true</Embed-Transitive></div>
<div><span style="white-space:pre-wrap">                                                        </span><_failok>true</_failok></div><div><span style="white-space:pre-wrap">                                                        </span><_nouses>true</_nouses></div>
<div><span style="white-space:pre-wrap">                                                        </span><_nodefaultversion>true</_nodefaultversion></div><div><span style="white-space:pre-wrap">                                                        </span><_snapshot>${osgi-version-qualifier}</_snapshot></div>
<div><span style="white-space:pre-wrap">                                                        </span><Bundle-SymbolicName>${project.artifactId};singleton:=false</Bundle-SymbolicName></div><div><span style="white-space:pre-wrap">                                                        </span><Bundle-RequiredExecutionEnvironment>J2SE-1.5,JavaSE-1.6</Bundle-RequiredExecutionEnvironment></div>
<div><span style="white-space:pre-wrap">                                                        </span><Bundle-Name>%Bundle-Name</Bundle-Name></div><div><span style="white-space:pre-wrap">                                                        </span><Bundle-Vendor>%Bundle-Vendor</Bundle-Vendor></div>
<div><span style="white-space:pre-wrap">                                                        </span><Bundle-ClassPath>{maven-dependencies}</Bundle-ClassPath></div><div><span style="white-space:pre-wrap">                                                </span></instructions></div>
<div><span style="white-space:pre-wrap">                                        </span></configuration></div><div><span style="white-space:pre-wrap">                                </span></plugin></div><div><span style="white-space:pre-wrap">                        </span></plugins></div>
<div><span style="white-space:pre-wrap">                </span></pluginManagement></div><div><span style="white-space:pre-wrap">                </span><plugins></div><div><span style="white-space:pre-wrap">                        </span><plugin></div>
<div><span style="white-space:pre-wrap">                                </span><groupId>org.apache.felix</groupId></div><div><span style="white-space:pre-wrap">                                </span><artifactId>maven-bundle-plugin</artifactId></div>
<div><span style="white-space:pre-wrap">                                </span><extensions>true</extensions></div><div><span style="white-space:pre-wrap">                                </span><configuration></div><div><span style="white-space:pre-wrap">                                        </span><instructions></div>
<div><span style="white-space:pre-wrap">                                                </span><Embed-Dependency>forge-javaee-impl,</div><div><span style="white-space:pre-wrap">                                                        </span>solder-impl</Embed-Dependency></div>
<div><span style="white-space:pre-wrap">                                                </span><_exportcontents>META-INF.plexus;-noimport:=true,</div><div><span style="white-space:pre-wrap">                                                        </span>org.jboss.forge.*</_exportcontents></div>
<div><span style="white-space:pre-wrap">                                                </span><Import-Package>!*</Import-Package></div><div><span style="white-space:pre-wrap">                                                </span><!-- <Require-Bundle>foo.bar;bundle-version="[1.3.0,1.4.0)"</Require-Bundle> --></div>
<div><span style="white-space:pre-wrap">                                        </span></instructions></div><div><span style="white-space:pre-wrap">                                </span></configuration></div><div><span style="white-space:pre-wrap">                        </span></plugin></div>
<div><span style="white-space:pre-wrap">                </span></plugins></div><div><span style="white-space:pre-wrap">        </span></build></div><div></project></div><div><br></div></div>
<div>m2eclipse-tycho is required (installable from the p2 repo <a href="http://nexus.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-tycho/0.6.0/N/0.6.0.201210231015/" target="_blank">http://nexus.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-tycho/0.6.0/N/0.6.0.201210231015/</a>) to make it work in eclipse. </div>
<div>It can also resolve workspace project dependencies.</div><div><br></div><div><div>Take a look at real config in : </div><div>* <a href="http://git.eclipse.org/c/m2e/m2e-core.git/tree/m2e-maven-runtime/org.eclipse.m2e.archetype.common/pom.xml" target="_blank">http://git.eclipse.org/c/m2e/m2e-core.git/tree/m2e-maven-runtime/org.eclipse.m2e.archetype.common/pom.xml</a></div>
<div>* and its parent pom : <a href="http://git.eclipse.org/c/m2e/m2e-core.git/tree/m2e-maven-runtime/pom.xml" target="_blank">http://git.eclipse.org/c/m2e/m2e-core.git/tree/m2e-maven-runtime/pom.xml</a></div><span class="HOEnZb"><font color="#888888"><div>
<br></div></font></span></div><span class="HOEnZb"><font color="#888888">-- <br>
"Have you tried turning it off and on again" - The IT Crowd
</font></span></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>"Simpler is better."
</div></div>