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

Nicolas Duminil updated KARAF-6898:
-----------------------------------
    Description: 
Hello,

I'm deploying a command feature on Karaf 4.2.9 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

  was:
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


> 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.9 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)

Reply via email to