Re: [java code coverage] Override -Djacoco.skip=false is not working.

2020-06-29 Thread suresh . gopidi
true This is what i have in my POM. org.jacoco jacoco-maven-plugin 0.8.5 pre-unit-test prepare-age

Re: [java code coverage] Override -Djacoco.skip=false is not working.

2020-06-29 Thread Evgeny Mandrikov
Snippets of pom.xml are not complete minimal reproducible examples, so no idea what's wrong in your case - in the attachment you'll find complete minimal example that works just fine. Regards, Evgeny On Mon, Jun 29, 2020 at 12:23 PM wrote: > Thank you Evgeny, > > Removed that from configurati

Re: [java code coverage] Override -Djacoco.skip=false is not working.

2020-06-29 Thread suresh . gopidi
Thank you Evgeny, Removed that from configuration and added under properties, but still this is not overriding. true and -Djacoco.skip=false to mvn install in jenkins. Getting [INFO] Skipping JaCoCo execution because property jacoco.skip is set. [INFO] surefireArgLine set to empty. I

Re: [java code coverage] Override -Djacoco.skip=false is not working.

2020-06-29 Thread Evgeny Mandrikov
This has nothing to do with jacoco-maven-plugin - please refer to the documentation about Maven itself: You can not use properties to override configuration explicitly specified in your pom.xml file, i.e. everything here behaves as expected - "true" can not be overridden by "-Djacoco.skip=false" be

[java code coverage] Override -Djacoco.skip=false is not working.

2020-06-29 Thread suresh . gopidi
Hi All, I have a requirement to Skip the Jacoco execution by default and have to execute the same on demand by overriding -Djacoco.skip=false in Jenkins build. I have this in my base-pom. which is working fine by default. org.jacoco jacoco-maven-plug