Well that defies the purpose of starting maven in debug mode in the first
place.

With Eclipse you can start Maven directly in the debugger, so that the
Maven task you are running is getting debugged. The Karaf plugin seems to
run the OSGi container directly in the Maven plugin, so it can be debugged
as well.

Starting some shell script forks another process and this is no longer
debuggable in that same session.

Sure you can set up remote debugging and everything that comes with that.
But having a direct debugger without the need to set this all up is way
easier.

On Wed, Sep 14, 2016 at 2:30 PM, Benson Margulies <ben...@basistech.com>
wrote:

> Run the exec-maven-plugin to run the 'karaf debug' command if you can't
> configure eclipse to just run a shell command.
>
>
> On Wed, Sep 14, 2016 at 8:16 AM, Jens Reimann <jreim...@redhat.com> wrote:
>
>> Sure, that could be workaround. If there would be a way to run karaf from
>> maven, then such a workaround would not be possible and full IDE
>> integration would be available.
>>
>> Which brings me back to my original question if such a thing is possible.
>> And if, then how?
>>
>> On Wed, Sep 14, 2016 at 2:00 PM, Achim Nierbeck <bcanh...@googlemail.com>
>> wrote:
>>
>>> call karaf debug and attach eclipse to the opened port is an alternative
>>>
>>> 2016-09-14 13:57 GMT+02:00 Jens Reimann <jreim...@redhat.com>:
>>>
>>>> Yes, that is then not executed by the Eclipse maven runner .. just a
>>>> shell script. So debugging will not be set up.
>>>>
>>>> On Wed, Sep 14, 2016 at 1:44 PM, Benson Margulies <ben...@basistech.com
>>>> > wrote:
>>>>
>>>>> Some problem with typing:
>>>>>
>>>>> target/assembly/bin/karaf
>>>>>
>>>>> ?
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Sep 14, 2016 at 6:48 AM, Benson Margulies <
>>>>> ben...@basistech.com> wrote:
>>>>>
>>>>>> Is your goal to start one up and then run tests against it? If so, I
>>>>>> have some other suggestions.
>>>>>>
>>>>>> On Wed, Sep 14, 2016 at 5:17 AM, Jens Reimann <jreim...@redhat.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> There seems to be a goal for maven "karaf:run" which can run a
>>>>>>> single bundle. But is there some way to run a karaf assembly, directly 
>>>>>>> from
>>>>>>> maven.
>>>>>>>
>>>>>>> Thanks for your help
>>>>>>>
>>>>>>> Jens
>>>>>>>
>>>>>>> --
>>>>>>> Jens Reimann
>>>>>>> Senior Software Engineer / EMEA ENG Middleware
>>>>>>> Werner-von-Siemens-Ring 14
>>>>>>> 85630 Grasbrunn
>>>>>>> Germany
>>>>>>> phone: +49 89 2050 71286
>>>>>>> ____________________________________________________________
>>>>>>> _________________
>>>>>>>
>>>>>>> Red Hat GmbH, www.de.redhat.com,
>>>>>>> Registered seat: Grasbrunn, Commercial register: Amtsgericht
>>>>>>> Muenchen, HRB 153243,
>>>>>>> Managing Directors: Paul Argiry, Charles Cachera, Michael
>>>>>>> Cunningham, Michael O'Neill
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Jens Reimann
>>>> Senior Software Engineer / EMEA ENG Middleware
>>>> Werner-von-Siemens-Ring 14
>>>> 85630 Grasbrunn
>>>> Germany
>>>> phone: +49 89 2050 71286
>>>> ____________________________________________________________
>>>> _________________
>>>>
>>>> Red Hat GmbH, www.de.redhat.com,
>>>> Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen,
>>>> HRB 153243,
>>>> Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham,
>>>> Michael O'Neill
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Apache Member
>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>>> & Project Lead
>>> blog <http://notizblog.nierbeck.de/>
>>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>
>>> Software Architect / Project Manager / Scrum Master
>>>
>>>
>>
>>
>> --
>> Jens Reimann
>> Senior Software Engineer / EMEA ENG Middleware
>> Werner-von-Siemens-Ring 14
>> 85630 Grasbrunn
>> Germany
>> phone: +49 89 2050 71286
>> ____________________________________________________________
>> _________________
>>
>> Red Hat GmbH, www.de.redhat.com,
>> Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen,
>> HRB 153243,
>> Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham,
>> Michael O'Neill
>>
>
>


-- 
Jens Reimann
Senior Software Engineer / EMEA ENG Middleware
Werner-von-Siemens-Ring 14
85630 Grasbrunn
Germany
phone: +49 89 2050 71286
_____________________________________________________________________________

Red Hat GmbH, www.de.redhat.com,
Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB
153243,
Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham,
Michael O'Neill

Reply via email to