You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2016/10/18 08:04:58 UTC

[jira] [Commented] (FELIX-5362) Felix Site Maven Bundle Docs: Add FAQ for using OSGi SCR annotations in unit tests

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

Konrad Windszus commented on FELIX-5362:
----------------------------------------

We should explicitly mention the incompatibility with m2e-tycho, which leads to errors like
"Duplicate manifest executions found. Please remove any explicitly defined manifest executions in your pom.xml." -> being caused by https://github.com/tesla/m2eclipse-tycho/blob/master/org.sonatype.tycho.m2e/src/org/sonatype/tycho/m2e/internal/PDEMavenBundlePluginConfigurator.java#L56 (since v0.8.0)
For versions up to v0.7.0 it just throws an IllegalArgumentException (https://github.com/tesla/m2eclipse-tycho/blob/030a2d615ed9b02c1bacb75b9475bf51fff219e3/org.sonatype.tycho.m2e/src/org/sonatype/tycho/m2e/internal/OsgiBundleProjectConfigurator.java#L76), see also http://apache-sling.73963.n3.nabble.com/Error-importing-org-apache-sling-contextaware-config-impl-into-Eclipse-td4065082.html#a4065094. Could we please add that to the FAQ as well?

> Felix Site Maven Bundle Docs: Add FAQ for using OSGi SCR annotations in unit tests
> ----------------------------------------------------------------------------------
>
>                 Key: FELIX-5362
>                 URL: https://issues.apache.org/jira/browse/FELIX-5362
>             Project: Felix
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Stefan Seifert
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>         Attachments: FELIX-5362-bundle-plugin-faq.patch
>
>
> as discussed in FELIX-4009 we should update the documentation to add a FAQ entry how maven-bundle-plugin can be used in projects which use the new OSGi DS annotations and unit tests using OSGi mocks.
> attached is a patch for the documentation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)