Hello p2 gods,<div><br></div><div>we&#39;re about to release <a href="https://www.eclipse.org/m2e-wtp/">m2e-wtp</a> from Eclipse.org and, in order to minimize user disruption, would like to make the m2e-wtp feature upgradeable over it&#39;s ancestor (<a href="https://github.com/sonatype/m2eclipse-wtp">m2eclipse-wtp</a>, from github). So basically our requirements are :</div>

<div>1 - m2e-wtp and m2eclipse-wtp can not be installed together</div><div>2 - m2e-wtp should be able to upgrade itself AND 
m2eclipse-wtp</div><div><br></div><div>Pascal kindly helped me setup (and understand) #1 using some p2.inf configuration (<a href="http://git.eclipse.org/c/m2e-wtp/org.eclipse.m2e.wtp.git/tree/org.eclipse.m2e.wtp.feature/p2.inf">http://git.eclipse.org/c/m2e-wtp/org.eclipse.m2e.wtp.git/tree/org.eclipse.m2e.wtp.feature/p2.inf</a>), similar to what&#39;s done for m2e actually.</div>

<div><br></div><div>Now #2 is where we&#39;re hitting a wall. I tried Pascal&#39;s suggestion to modify the content.xml from the update site&#39;s content.jar by doing the following : </div><div><br></div><div>1 - add &quot;<span style="background-color:rgb(255,255,255);font-size:12px;line-height:16px">providedCapabilities.exists(pc | pc.namespace == &#39;org.eclipse.equinox.p2.iu&#39; &amp;&amp; (<a href="http://pc.name">pc.name</a> == &#39;org.maven.ide.wtp.feature.feature.group&#39; || <a href="http://pc.name">pc.name</a> == &#39;org.eclipse.m2e.wtp.feature.feature.group&#39; &amp;&amp; pc.version &lt; &#39;${version}&#39;))&quot; to feature.update.match</span></div>

<div><span style="background-color:rgb(255,255,255);font-size:12px;line-height:16px">2 - remove the id and range attributes from </span><span style="background-color:rgb(255,255,255);font-size:12px;line-height:16px">feature.update</span></div>

<div><br></div><div>This is all scripted in <a href="http://git.eclipse.org/c/m2e-wtp/org.eclipse.m2e.wtp.git/tree/org.eclipse.m2e.wtp.site/src/main/assembly/fixupdate.groovy">http://git.eclipse.org/c/m2e-wtp/org.eclipse.m2e.wtp.git/tree/org.eclipse.m2e.wtp.site/src/main/assembly/fixupdate.groovy</a></div>

<div><br></div><div>The whole script works as expected (the content.xml is properly tweaked, after the site is generated by tycho) but the problem is, the hack doesn&#39;t work : m2e-wtp 0.16.0 is still not upgradeable over m2eclipse-wtp 0.15.2 and complains about the conflict declared in p2.inf</div>

<div><br></div><div>The whole issue is tracked as <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=385746">https://bugs.eclipse.org/bugs/show_bug.cgi?id=385746</a></div><div><br></div><div>Any help/ideas are more than welcome.</div>

<div><br></div><div>Regards,</div><div><br></div><div>Fred Bricon<br clear="all"><div><br></div>-- <br>&quot;Have you tried turning it off and on again&quot; - The IT Crowd<br>
</div>