Howdy,

I did locally this
https://gist.github.com/cstamas/25f6c978d3eb0823fd0af8ef25c08d6f

And I think I got the behaviour that you expect.

Given a project can be built only with Java8+ this should be ok.

T

On Sun, Apr 21, 2024 at 4:03 PM Gary Gregory <garydgreg...@gmail.com> wrote:

> Hi,
>
> A POM can't seem to inherit a parent POM configuration with properties
> redefined in a child POM profile.
>
> Am I doing something wrong?
>
> For example:
>
> git clone https://gitbox.apache.org/repos/asf/commons-bcel.git
> cd commons-bcel
> git checkout eba45c05365fc89b0007296fc3ee188cca5d091d
> maven
>
> This REQUIRES using Java 8, run the default goal: `mvn`
>
> and you'll get JaCoCo check failures because properties like
> commons.jacoco.classRatio are not (apparently) overridden in the Java
> 8 profile (id java-8) from 0.90 to 0.89.
>
> [INFO] Loading execution data file
> /Users/garydgregory/git/commons-bcel/target/jacoco.exec
> [INFO] Analyzed bundle 'bcel' with 408 classes
> [WARNING] Rule violated for bundle bcel: classes covered ratio is
> 0.89, but expected minimum is 1.00
> [WARNING] Rule violated for bundle bcel: instructions covered ratio is
> 0.65, but expected minimum is 0.90
> [WARNING] Rule violated for bundle bcel: methods covered ratio is
> 0.70, but expected minimum is 0.95
> [WARNING] Rule violated for bundle bcel: branches covered ratio is
> 0.59, but expected minimum is 0.85
> [WARNING] Rule violated for bundle bcel: lines covered ratio is 0.68,
> but expected minimum is 0.90
> [WARNING] Rule violated for bundle bcel: complexity covered ratio is
> 0.58, but expected minimum is 0.85
>
> Is there a way to get this to work?
>
> TY,
> Gary
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to