Jean-Baptiste Onofré commented on KARAF-5630:

Unfortunately,  the Karaf documentation doesn't provide any detail  about the 
{{karaf:run}} goal.

Basically,  you can use {{karaf:run}}:

1. to  simply run a karaf instance in your maven build.  It's an execution, 
nothing will be deployed in it, so there's no reason to attach any artifact.
2. to  extend the run by putting the bundle (or artifact, like feature) in the 
Karaf {{deploy}} folder.

If the maven packaging is simple {{pom}}, then there's no artifact attached.

You also have {{karaf:deploy}} for bundle (especially to deploy on remote 

> karaf:run goal not working 
> ---------------------------
>                 Key: KARAF-5630
>                 URL: https://issues.apache.org/jira/browse/KARAF-5630
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-tooling
>    Affects Versions: 4.0.4, 4.0.5, 4.0.10, 4.1.5, 4.2.0.M2
>            Reporter: Felix marezki
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
> The karaf:run goal is supposed to run a bundle.
> This doesn't work as the RunMojo tries to run the artifact that is associated 
> with the Project.
> Even though there is an Artifact available its getFile() function return 
> null, as normally the setFile() function of it is being called by the 
> packaging Mojo which is not present nor executed beforehand.

This message was sent by Atlassian JIRA

Reply via email to