-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bnd-maven-plugin configuration merging #3490
base: master
Are you sure you want to change the base?
Conversation
Previously the configuration from the parent (per execution id) was overriding the local config (per plugin). Now the parent configuration is no longer per execution id, i.e. both local plugin configurations (i.e. on plugin level and on execution id level) take precedence. This closes #3471
@cziegeler Can you have a look as well? Actually it doesn't seem to be a bug in bnd-maven-plugin but just a misunderstanding how the effective plugin configuration is calculated: https://issues.apache.org/jira/browse/MNGSITE-544 |
@kwin does this address the missing onprem bundle from the all.zip as well? IIRC from last night it wasnt being added as a dep to the all's non-cloud profile. |
@davidjgonzalez I just added the missing dependency in 52a5bee |
It looks like the build is failing due to the onprem bundle failing aemanalyser checks:
I ran into the same when I was trying to fix this in the other PR. Do we just skip running the analyzer for the non-cloud, and let the cloud build fail on any errors in the shared bundles? Im not seeing any way tell it to not analyze a specific artifact..? |
52a5bee
to
b1e5fd2
Compare
Simplify embedding Only run aemanalyser on package with classifier "cloud"
b1e5fd2
to
02ce4da
Compare
@davidjgonzalez I now excluded running the aemanalyser on the classic/onprem package in 02ce4da. It only evaluates the one with |
@kwin - This is still failing, but now it thinks jacoco is being added to the bundle, tho from what i can see that's only included w/ the test scope.
|
The relevant error is
Not sure how the Jacoco agent may affect the Manifest generation and why that error was not emitted before... |
Turns out the reason is offline instrumentation for jacoco (compare with https://www.eclemma.org/jacoco/trunk/doc/offline.html and https://www.eclemma.org/jacoco/trunk/doc/faq.html). It is unclear to me why Jacoco Offline instrumentation is used at all (introduced with 7cb5929, due to #1321). As powermock is no longer used, we should completely get rid of it. Jacoco seems to be leveraged for CodeCov (https://github.com/codecov/example-java) as well. |
Previously the configuration from the parent (per execution id) was overriding the local config (per plugin). Now the parent configuration is no longer per execution id, i.e. both local plugin configurations (i.e. on plugin level and on execution id level) take precedence.
This closes #3471