<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">&lt;<a href="mailto:fbricon@gmail.com">fbricon@gmail.com</a>&gt;</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 &lt;<a href="mailto:koen.aers@jboss.com">koen.aers@jboss.com</a>&gt;<br>
<br><br><div>Here&#39;s an example </div><div><br></div><div>&lt;project xmlns=&quot;<a href="http://maven.apache.org/POM/4.0.0" target="_blank">http://maven.apache.org/POM/4.0.0</a>&quot; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;</div>


<div><div><span style="white-space:pre-wrap">        </span>xsi:schemaLocation=&quot;<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>&quot;&gt;</div>


<div><span style="white-space:pre-wrap">        </span>&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;groupId&gt;foo.bar&lt;/groupId&gt;</div>

<div><span style="white-space:pre-wrap">        </span>&lt;artifactId&gt;my-bundle&lt;/artifactId&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;</div>

<div><span style="white-space:pre-wrap">        </span>&lt;packaging&gt;bundle&lt;/packaging&gt;</div><div><br></div><div><span style="white-space:pre-wrap">        </span>&lt;properties&gt;</div><div>

<span style="white-space:pre-wrap">                </span>&lt;osgi-version-qualifier&gt;${maven.build.timestamp}&lt;/osgi-version-qualifier&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;/properties&gt;</div>

<div><span style="white-space:pre-wrap">        </span>&lt;dependencies&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;dependency&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;groupId&gt;org.jboss.forge&lt;/groupId&gt;</div>


<div><span style="white-space:pre-wrap">                        </span>&lt;artifactId&gt;forge-javaee-impl&lt;/artifactId&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;version&gt;1.2.0.Final&lt;/version&gt;</div>

<div><span style="white-space:pre-wrap">                </span>&lt;/dependency&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;/dependencies&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;build&gt;</div>

<div><span style="white-space:pre-wrap">                </span>&lt;pluginManagement&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;plugins&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;plugin&gt;</div>


<div><span style="white-space:pre-wrap">                                        </span>&lt;groupId&gt;org.apache.felix&lt;/groupId&gt;</div><div><span style="white-space:pre-wrap">                                        </span>&lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;</div>

<div><span style="white-space:pre-wrap">                                        </span>&lt;version&gt;2.3.7&lt;/version&gt;</div><div><span style="white-space:pre-wrap">                                        </span>&lt;extensions&gt;true&lt;/extensions&gt;</div>

<div><span style="white-space:pre-wrap">                                        </span>&lt;configuration&gt;</div><div><span style="white-space:pre-wrap">                                                </span>&lt;manifestLocation&gt;META-INF&lt;/manifestLocation&gt;</div>

<div><span style="white-space:pre-wrap">                                                </span>&lt;instructions&gt;</div><div><span style="white-space:pre-wrap">                                                        </span>&lt;Embed-Transitive&gt;true&lt;/Embed-Transitive&gt;</div>

<div><span style="white-space:pre-wrap">                                                        </span>&lt;_failok&gt;true&lt;/_failok&gt;</div><div><span style="white-space:pre-wrap">                                                        </span>&lt;_nouses&gt;true&lt;/_nouses&gt;</div>

<div><span style="white-space:pre-wrap">                                                        </span>&lt;_nodefaultversion&gt;true&lt;/_nodefaultversion&gt;</div><div><span style="white-space:pre-wrap">                                                        </span>&lt;_snapshot&gt;${osgi-version-qualifier}&lt;/_snapshot&gt;</div>


<div><span style="white-space:pre-wrap">                                                        </span>&lt;Bundle-SymbolicName&gt;${project.artifactId};singleton:=false&lt;/Bundle-SymbolicName&gt;</div><div><span style="white-space:pre-wrap">                                                        </span>&lt;Bundle-RequiredExecutionEnvironment&gt;J2SE-1.5,JavaSE-1.6&lt;/Bundle-RequiredExecutionEnvironment&gt;</div>


<div><span style="white-space:pre-wrap">                                                        </span>&lt;Bundle-Name&gt;%Bundle-Name&lt;/Bundle-Name&gt;</div><div><span style="white-space:pre-wrap">                                                        </span>&lt;Bundle-Vendor&gt;%Bundle-Vendor&lt;/Bundle-Vendor&gt;</div>


<div><span style="white-space:pre-wrap">                                                        </span>&lt;Bundle-ClassPath&gt;{maven-dependencies}&lt;/Bundle-ClassPath&gt;</div><div><span style="white-space:pre-wrap">                                                </span>&lt;/instructions&gt;</div>

<div><span style="white-space:pre-wrap">                                        </span>&lt;/configuration&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;/plugin&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;/plugins&gt;</div>


<div><span style="white-space:pre-wrap">                </span>&lt;/pluginManagement&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;plugins&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;plugin&gt;</div>


<div><span style="white-space:pre-wrap">                                </span>&lt;groupId&gt;org.apache.felix&lt;/groupId&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;</div>

<div><span style="white-space:pre-wrap">                                </span>&lt;extensions&gt;true&lt;/extensions&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;configuration&gt;</div><div><span style="white-space:pre-wrap">                                        </span>&lt;instructions&gt;</div>


<div><span style="white-space:pre-wrap">                                                </span>&lt;Embed-Dependency&gt;forge-javaee-impl,</div><div><span style="white-space:pre-wrap">                                                        </span>solder-impl&lt;/Embed-Dependency&gt;</div>

<div><span style="white-space:pre-wrap">                                                </span>&lt;_exportcontents&gt;META-INF.plexus;-noimport:=true,</div><div><span style="white-space:pre-wrap">                                                        </span>org.jboss.forge.*&lt;/_exportcontents&gt;</div>

<div><span style="white-space:pre-wrap">                                                </span>&lt;Import-Package&gt;!*&lt;/Import-Package&gt;</div><div><span style="white-space:pre-wrap">                                                </span>&lt;!-- &lt;Require-Bundle&gt;foo.bar;bundle-version=&quot;[1.3.0,1.4.0)&quot;&lt;/Require-Bundle&gt; --&gt;</div>


<div><span style="white-space:pre-wrap">                                        </span>&lt;/instructions&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;/configuration&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;/plugin&gt;</div>


<div><span style="white-space:pre-wrap">                </span>&lt;/plugins&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;/build&gt;</div><div>&lt;/project&gt;</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>

&quot;Have you tried turning it off and on again&quot; - 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>&quot;Simpler is better.&quot;
</div></div>