Hmm,
Over thinking the problem..I was looking in the wrong place.
When setting up MavenArtifactUrlReference I had the artifact "type" being set AFTER
"versionAsInProject"
Fixed this and the Karaf magic worked.
Thanks JB and Francois for your assistance.
Also, https://www.youtube.com/watch?v=qNmBZjJcups&feature=youtu.be Eclipsecon presentation by Łukasz
Dywicki has been very helpful.
In fact, the presentation by Lukasz, fortunately, caused me to take a new look at Karaf, which I
have been ignoring for years.
Support on this list during this learning phase has been outstanding, thanks..
Paul
On 2/06/2019 2:06 am, Jean-Baptiste Onofré wrote:
You need debugConfiguration only if you want to specify the port.
By default it's 5005 (not random), so, yes, it should work straight forward.
Regards
JB
On 01/06/2019 14:04, Paul Fraser wrote:
On 1/06/2019 7:10 pm, Jean-Baptiste Onofré wrote:
Actually, if you run in debug mode directly in intellij, it works,
nothing special is required.
Does this mean it is not necessary to uncomment
"KarafDistributionOption.debugConfiguration("5005", true)"?
Are you running your itests in IntelliJ ?
Yes. Trying to..
It seems that somewhere the port for the connection to the java vm is
not being set to 5005 but a random high value.
Should the port for the vm be set to 5005 by Karaf when debugging?
Paul
Regards
JB
On 01/06/2019 08:09, Paul Fraser wrote:
On 1/06/2019 4:03 pm, Jean-Baptiste Onofré wrote:
Hi Paul,
What Pax Exam version are you using ?
pax exam 4.13.1 and Karaf 4.2.5
Paul
Regards
JB
On 01/06/2019 08:01, Paul Fraser wrote:
Hi,
The example itests code has line
"KarafDistributionOption.debugConfiguration("8889", true) commented
out.
Presumably, the idea is to uncomment and debug of the itest becomes
possible. (for intellij set port to 5005 and remote debug config
set in
intellij)
When I try to debug the target connects -
"Connected to the target VM, address: '127.0.0.1:52458', transport:
'socket' " and then
"Listening for transport dt_socket at address:5005"
If I run debugging outside an itest with "bin\karaf debug" , it works.
What am I missing in the debug itests case?
Paul Fraser