karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-5630) karaf:run goal not working
Date Fri, 23 Feb 2018 11:45:04 GMT

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

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

> 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
(v7.6.3#76005)

Mime
View raw message