gnodet commented on PR #1979:
URL: https://github.com/apache/maven-mvnd/pull/1979#issuecomment-7394958728

   _Claude Code on behalf of Guillaume Nodet_
   
   ## Critical Issue: Bytecode Version Incompatibility
   
   This PR cannot be merged as-is. The CI build is failing due to a Maven 
Enforcer bytecode version check:
   
   ```
   [ERROR] Found Banned Dependency: org.jline:jline-native:jar:4.7.1
   [ERROR] Found Banned Dependency: org.jline:jline-terminal-jni:jar:4.7.1
   [ERROR] Found Banned Dependency: org.jline:jline-terminal:jar:4.7.1
   ```
   
   ### Root Cause
   
   This is a **major version bump** (3.x → 4.x) that introduces breaking 
changes:
   
   1. **Bytecode Version**: JLine 4.x likely requires Java 21+ bytecode, but 
this project targets Java 17 (`maven-dist.required.jdk=17` in pom.xml line 71)
   
   2. **Module Structure Change**: JLine 4.x split the monolithic 
`org.jline:jline` artifact into separate modules:
      - `org.jline:jline-terminal`
      - `org.jline:jline-terminal-jni`
      - `org.jline:jline-native`
      - etc.
   
      The existing enforcer exclusion (`<exclude>org.jline:jline</exclude>`) 
only covers the old monolithic artifact name and doesn't match these new module 
names.
   
   ### Impact Assessment
   
   - **Build**: ❌ All CI builds failing
   - **API Compatibility**: ⚠️ Needs verification - major version bumps 
typically include breaking API changes
   - **Target Branch**: This targets `mvnd-1.0.x`, which may need to maintain 
Java 17 compatibility
   
   ### Required Actions
   
   Before this can be merged, one of the following must happen:
   
   1. **Stay on JLine 3.x**: Wait for JLine to release compatible updates on 
the 3.x branch
   2. **Upgrade project to Java 21+**: Update the entire project's Java 
baseline (breaking change for a 1.0.x maintenance branch)
   3. **Verify JLine 4.x Java 17 support**: If JLine 4.x actually supports Java 
17 bytecode, update the enforcer exclusions to cover all new artifacts
   
   **Recommendation**: For the `mvnd-1.0.x` maintenance branch, staying with 
JLine 3.x is likely the safer choice unless there's a critical security issue 
being addressed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to