--
You received this message because you are subscribed to the Google Groups "Codehaus Cargo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codehaus-carg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/24476872-a47d-4259-87d1-19bb45baf633n%40googlegroups.com.
Thanks Ali! Much appreciated for the quick response.
So I was able to finally get it working with the Maven Cargo plugin using artifactInstaller (in execution - start and stop).
I did have a few other questions:
1. I would like to get Maven Cargo and Jetty working using SSL (actually with mutual authentication). I noticed that with the Maven Cargo + Tomcat configuration, you can set the identity keystore configuration and the trust store configuration via configuration settings (e.g., cargo.tomcat.connector.keystoreFile, cargo.tomcat.connector.truststoreFile, etc.). I noticed that for the Cargo Jetty 12x documentation, there are no such configuration properties to use. Are there configuration settings that will allow me to set these values (keystore, keystore type, password, etc.). OR...is the only way to be able to set these settings for Jetty12x is to modify these is to actually configure Jetty config files (e.g., jetty-ssl-context.xml) with the appropriate settings, and then use the Maven Cargo plugin to override the configuration file???
2. Does the Maven Cargo plugin also support code coverage instrumentation like Jetty does with JaCoCo?? I only ask because I have a requirement to be able to report on code coverage for integration tests that interact with the WAR application deployed to the servlet container (either embedded or not), and with Jetty you can pass in Failsafe arguments to be able to trigger instrumentation with the application code running within the servlet container, which make it possible to get code coverage results after integration test execution via JaCoCo. I read through your documentation and did not notice support any information regarding using Maven Cargo with a container to capture code coverage through JaCoCo. Is there a way to get those instrumentation results for code coverage with Maven Cargo?
Thanks!
Cheers!
John
Hi John
Great news!
Adding HTTPS support for Jetty has been in our backlog for some time (see https://codehaus-cargo.atlassian.net/issues/CARGO-977), if you want to give it a shot we gladly accept pull requests 🙂
Having said that, indeed it is probably possible to enable HTTPS using the https://codehaus-cargo.github.io/cargo/Configuration+files+option.html.
As for JaCoCo: I believe you'd use the JVM start arguments option, exactly as shown in https://codehaus-cargo.github.io/cargo/Debugging.html for debugging.
Does this help?
Regards
S. Ali Tokmen https://ali.tokmen.com/ https://contact.ali.tokmen.com/
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/b008f463-68ed-4bee-ad56-97d2541a8839n%40googlegroups.com.
Hi John
Well done 🙂 Let us know if you want to contribute with a PR, for a "proper" HTTPS support for Jetty.
The Cargo Ping Component is the "only" way we have in Jetty, and it uses the same Java VM as your Maven. Hence, if you add the trust in your Maven's JVM, or add the Java options to ignore signatures, it would do the trick.
Regards
S. Ali Tokmen https://ali.tokmen.com/ https://contact.ali.tokmen.com/
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/13a46174-92a6-4e90-a941-82623a372c6bn%40googlegroups.com.
Hi John
I had a closer look, and observed adding HTTPS in Jetty 10.x onwards is quite simple, so commited https://github.com/codehaus-cargo/cargo/commit/d84674aa9a42bcd60165f4b9c847aef59cbeb032 which cllses the below JIRA.
What I noticed as well, this is doable with the current version of Codehaus Cargo:
Let me know if this helps as well, with the below instructions you get a Jetty which is configured to deliver over HTTP and HTTPS at the same time.
Regards
S. Ali Tokmen https://ali.tokmen.com/ https://contact.ali.tokmen.com/
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/57a68fb5-2946-4027-967a-08a904c779b5%40alishomepage.com.
Hi John
Fantastic news! 🙂
With Codehaus Cargo 1.10.14 (once released) this should become even easier, with https://codehaus-cargo.atlassian.net/issues/CARGO-977 implemented and also https://codehaus-cargo.github.io/cargo/Containers+with+HTTPS+support.html explaining HTTPS support on Jetty 10.x onwards (both for setups having HTTP and HTTPS, or of course HTTPS-only).
Regards
S. Ali Tokmen https://ali.tokmen.com/ https://contact.ali.tokmen.com/
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/CA%2BgMdsOiRL6Q2iSbF2OjK%2BrEMEN0n0-CM%2Babgb1o6-OWa%3DpYqQ%40mail.gmail.com.