I requested to remove the MavenBundlePluginConfigurator from the m2e-tycho extension (https://github.com/tesla/m2eclipse-tycho/issues/31 <https://github.com/tesla/m2eclipse-tycho/issues/31>). Hopefully they will update also the catalog listing to point to a newer release afterwards so that this extension does no longer conflict with Sling.
> On 27 Sep 2016, at 14:44, Konrad Windszus <[email protected]> wrote: > > Thanks for that pointer. Indeed it seems related: > https://github.com/tesla/m2eclipse-tycho/blob/a096bd5549d46bbc7644a6e5f42938dd93336251/org.sonatype.tycho.m2e/src/org/sonatype/tycho/m2e/internal/OsgiBundleProjectConfigurator.java#L76 > > <https://github.com/tesla/m2eclipse-tycho/blob/a096bd5549d46bbc7644a6e5f42938dd93336251/org.sonatype.tycho.m2e/src/org/sonatype/tycho/m2e/internal/OsgiBundleProjectConfigurator.java#L76> > In this case there seem to be two mojo executions for the maven-bundle-plugin. > One is probably bundle (being configured through > https://github.com/apache/felix/blob/trunk/tools/maven-bundle-plugin/src/main/resources/META-INF/plexus/components.xml > > <https://github.com/apache/felix/blob/trunk/tools/maven-bundle-plugin/src/main/resources/META-INF/plexus/components.xml>). > and the other is goal "manifest" (for the generation of the manifest for > testing purposes). > > I guess either we should recommend to uninstall the plugin or install a newer > version > (https://github.com/tesla/m2eclipse-tycho/blob/master/org.sonatype.tycho.m2e/src/org/sonatype/tycho/m2e/felix/internal/MavenBundlePluginConfigurator.java > > <https://github.com/tesla/m2eclipse-tycho/blob/master/org.sonatype.tycho.m2e/src/org/sonatype/tycho/m2e/felix/internal/MavenBundlePluginConfigurator.java>, > since the code has changed quite a bit since version 0.6.0). Installing > 0.9.0 from > https://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-tycho/0.9.0/N/LATEST/ > > <https://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-tycho/0.9.0/N/LATEST/> > made the problem go away for me (but will still prefer the execution of the > m2e extension over the lifecycle binding from the plugin). > > I couldn't find an easy way to update that within Eclipse without explicitly > trying the new p2 repo URL though. > > >> On 27 Sep 2016, at 14:00, Robert Munteanu <[email protected]> wrote: >> >> Hi Konrad, >> >> On Tue, 2016-09-27 at 13:57 +0200, Konrad Windszus wrote: >>> Whenever I import the Maven project from "https://github.com/apache/s >>> ling/tree/trunk/contrib/extensions/contextaware-config/impl >>> <https://github.com/apache/sling/tree/trunk/contrib/extensions/contex >>> taware-config/impl>" I am getting an error in Eclipse: >>> >>> java.lang.IllegalArgumentException >>> at >>> org.sonatype.tycho.m2e.internal.OsgiBundleProjectConfigurator.generat >>> eBundleManifest(OsgiBundleProjectConfigurator.java:76) >>> at >>> >> >> (snip) >> >> ISTR that this happened when duplicate executions or goals were >> declared in the pom.xml, maybe check for that? >> >> Robert >
