Skip to content

Switch from bnd:jar to bnd:bnd-process (#69) - #77

Merged
vy merged 1 commit into
mainfrom
bnd-process
Dec 10, 2023
Merged

vy merged 1 commit into
mainfrom
bnd-process

Conversation

@vy

@vy vy commented Dec 10, 2023

Copy link
Copy Markdown
Member

This PR implements #69 requesting the switch from bnd:jar to bnd:bnd-process.

Implementation notes

  • When run against logging-log4j2, (spotbugs-maven-plugin started crashing with switch to bnd:bnd-process. Setting fork to false fixed the problem. Though this interestingly caused new bug discoveries by spotbugs:spotbugs goal and this only happened for 2.x branch. main did not observe any spotbugs:spotbugs anomalies after the switch. All new Spotbugs findings in 2.x are fixed in apache/logging-log4j2@15fddad and apache/logging-log4j2@9f7455a.
  • Set useModulePath to false for maven-compiler-plugin (with default-testCompile execution ID), maven-surefire-plugin, and maven-failsafe-plugin. This was already more or less the norm in logging-log4j2.

Results

  • 2.x branch of logging-log4j2 compiles and one can run tests in IntelliJ IDEA without problems.
  • main branch of logging-log4j2
    • does not compile – <extensions>true</extensions> needs to be removed from existing bnd-maven-plugin overrides.
    • IntelliJ IDEA build fails (on log4j-core) with module not found: org.jctools.core, module not found: org.fusesource.jansi, etc. messages.

# Conflicts:
#	src/site/_release-notes/_10.x.x.adoc
@vy vy self-assigned this Dec 10, 2023
@vy
vy merged commit edbda8a into main Dec 10, 2023
@ppkarwasz
ppkarwasz deleted the bnd-process branch January 15, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant