Update to Maven 4 - #4219
Conversation
Test Results 294 files - 774 294 suites - 774 10m 1s ⏱️ - 4h 57m 57s For more details on these failures and errors, see this check. Results for commit 54b0c30. ± Comparison against base commit 5abb73e. This pull request removes 777 tests.This pull request skips 36 tests.♻️ This comment has been updated with latest results. |
d907942 to
7e7357d
Compare
08df834 to
4d44e7f
Compare
6ea68db to
6d7133e
Compare
|
/request-license-review |
This comment was marked as outdated.
This comment was marked as outdated.
|
I was now able to make the codebase actually compile with Maven 4. |
059428e to
d0d8913
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR updates Tycho to use Maven 4.0.0-rc-4, making it compatible with the next major version of Maven. The update involves adjusting dependency scopes and adding missing transitive dependencies that were previously provided by Maven 3.
Key changes:
- Updated Maven version from 3.9.11 to 4.0.0-rc-4
- Removed
testscope restrictions frommaven-compatdependencies across multiple modules - Added explicit dependencies on
maven-compat,javax.inject, and DI framework components (Guice, Sisu)
Reviewed Changes
Copilot reviewed 23 out of 23 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pom.xml | Updates Maven version property to 4.0.0-rc-4 |
| tycho-versions-plugin/pom.xml | Removes test scope from maven-compat dependency |
| tycho-source-plugin/pom.xml | Removes test scope from maven-compat dependency |
| tycho-packaging-plugin/pom.xml | Removes test scope from maven-compat dependency |
| tycho-p2-repository-plugin/pom.xml | Removes test scope from maven-compat dependency |
| tycho-core/pom.xml | Removes test scope from maven-compat dependency |
| tycho-compiler-plugin/pom.xml | Removes test scope from maven-compat dependency |
| tycho-eclipse-plugin/pom.xml | Removes test scope and adds javax.inject dependency |
| tycho-testing-harness/pom.xml | Adds maven-core, maven-compat and DI framework dependencies |
| tycho-targetplatform/pom.xml | Adds maven-compat and javax.inject dependencies |
| tycho-surefire/tycho-surefire-plugin/pom.xml | Adds maven-compat dependency |
| tycho-spi/pom.xml | Adds maven-compat dependency |
| tycho-sbom/pom.xml | Adds maven-compat dependency |
| tycho-repository-plugin/pom.xml | Adds maven-compat dependency |
| tycho-p2-publisher-plugin/pom.xml | Adds maven-compat dependency |
| tycho-p2-director-plugin/pom.xml | Adds maven-compat dependency |
| tycho-extras/tycho-pomless/pom.xml | Adds maven-compat dependency |
| tycho-extras/tycho-pomless/src/main/java/.../TychoPomlessLifecycleParticipant.java | Comments out extension warning code and removes unused imports |
| tycho-extras/tycho-document-bundle-plugin/pom.xml | Adds maven-compat dependency |
| tycho-extras/target-platform-validation-plugin/pom.xml | Adds maven-compat dependency |
| tycho-buildtimestamp-jgit/pom.xml | Adds maven-compat dependency |
| tycho-baseline-plugin/pom.xml | Adds maven-compat dependency |
| p2-maven-plugin/pom.xml | Adds maven-compat and javax.inject dependencies with provided scope |
|
Updated to Maven 4-rc5 as it contains some additional compatibility fixes. |
|
/request-license-review |
License review requests:
After all reviews have concluded, re-run the license-vetting check from the Github Actions web-interface to update its status. Workflow run (with attached summary files): |
Add explicit javax.inject dependency for Maven 4 compatibility (#103) * Initial plan * Add javax.inject dependency to fix Maven 4 compilation issues Co-authored-by: laeubi <1331477+laeubi@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: laeubi <1331477+laeubi@users.noreply.github.com> Fix Maven 4 test failures: Add DynamicImport-Package for p2 repository factories and Eclipse Aether dependencies (#104) * Initial plan * Fix p2 repository factory registration with DynamicImport-Package Co-authored-by: laeubi <1331477+laeubi@users.noreply.github.com> * Add aether-impl dependency for Maven 4 test compatibility Co-authored-by: laeubi <1331477+laeubi@users.noreply.github.com> * Add Eclipse Aether dependencies for Maven 4 compatibility (partial fix) Maven 4 rc-5's MavenRepositorySystemUtils.newSession() still references old Eclipse Aether classes (org.eclipse.aether.*) but these are not provided transitively. Added aether-api, aether-util, and aether-impl 1.1.0 to provide the base classes. However, ConfigurableVersionSelector is an internal class that was never part of public Aether API and cannot be provided without conflicts. This appears to be a Maven 4 rc-5 bug that should be fixed in the final release. Partial fix for M2E PDE target test failures - core p2 repository functionality works correctly. Co-authored-by: laeubi <1331477+laeubi@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: laeubi <1331477+laeubi@users.noreply.github.com> Reference maven-resolver-util directly
|
/request-license-review |
This is to keep track of update to Maven 4
Required cleanup PRs: