You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Nicolas Duminil (Jira)" <ji...@apache.org> on 2020/11/05 16:43:00 UTC

[jira] [Updated] (KARAF-6898) Command feature doesn't register

     [ https://issues.apache.org/jira/browse/KARAF-6898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicolas Duminil updated KARAF-6898:
-----------------------------------
    Summary: Command feature doesn't register  (was: MANIFEST.MF doesn't have Import-Services)

> Command feature doesn't register
> --------------------------------
>
>                 Key: KARAF-6898
>                 URL: https://issues.apache.org/jira/browse/KARAF-6898
>             Project: Karaf
>          Issue Type: Question
>          Components: karaf
>    Affects Versions: 4.2.9
>         Environment: Java 11 but Java 8 gives the same result. Ubuntu 20.04 LTS.
>            Reporter: Nicolas Duminil
>            Priority: Minor
>
> Hello,
> I'm deploying a command feature on Karaf 4.2.8 but, for some reasons, the commands aren't registered and trying to use them says "Command not found". Then I'm comparing my projects with the ones found here [https://github.com/apache/karaf/tree/master/examples/karaf-rest-example.] Everything seems to be similar, with the exception that the project in the example works, while mine doesn't.
> The only difference I can notice is that the sample has the following parent:
>      <parent>
>        <groupId>org.apache.karaf.examples</groupId>
>        <artifactId>apache-karaf-examples</artifactId>
>        <version>4.2.9</version>
>        <relativePath>../pom.xml</relativePath>
>      </parent>
> while mine has a different parent POM, much smaller, which defines only the strict required dependencies and plugins. Adding the same hierarchy to my project, everything works as expected, the commands get registered correctly. What difference does it make by simply using this parent in my master POM ? The interesting thing is that importing the parent POM instead of inheriting it doesn't work neither.
> I'm using Java 11 but switching to Java 8 doesn't change anything.
> Many thanks in advance.
> Kind regards.
> Nicolas



--
This message was sent by Atlassian Jira
(v8.3.4#803005)