>From Michael Blow <[email protected]>:

Michael Blow has uploaded this change for review. ( 
https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21972?usp=email )


Change subject: [NO ISSUE][MISC] Scope maven-core and maven-compat provided in 
plugins
......................................................................

[NO ISSUE][MISC] Scope maven-core and maven-compat provided in plugins

- user model changes: no
- storage format changes: no
- interface changes: no

Details: Since the advance to 3.10.0, maven-core and maven-compat bring
maven-resolver-provider 3.10.0 and with it maven-resolver-transport-file
and -transport-apache 2.0.24. license-automation-plugin and
asterix-grammar-extension-maven-plugin declared both at compile scope,
so those jars entered the plugin realm. Their Sisu components are
discovered into the shared container, and the next artifact download
anywhere in the reactor picks up FileTransporterFactory 2.0.24. On a
Maven 3.8.x runtime that class binds to the core's resolver 1.6.3 API
and fails with NoClassDefFoundError:
org/eclipse/aether/repository/RepositoryUriUtils.

The Maven runtime supplies both artifacts to every plugin, so declare
them provided, which keeps their transitive resolver jars out of the
plugin realm.

Ext-ref: MB-73268
Generated-by: Claude Opus 5.5 <[email protected]>
Change-Id: I336c115eef1eea6fe899b863e23bc368f2672647
---
M asterixdb/asterix-maven-plugins/asterix-grammar-extension-maven-plugin/pom.xml
M 
hyracks-fullstack/hyracks/hyracks-maven-plugins/license-automation-plugin/pom.xml
2 files changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb 
refs/changes/72/21972/1

diff --git 
a/asterixdb/asterix-maven-plugins/asterix-grammar-extension-maven-plugin/pom.xml
 
b/asterixdb/asterix-maven-plugins/asterix-grammar-extension-maven-plugin/pom.xml
index a34173d..a7a4f70 100644
--- 
a/asterixdb/asterix-maven-plugins/asterix-grammar-extension-maven-plugin/pom.xml
+++ 
b/asterixdb/asterix-maven-plugins/asterix-grammar-extension-maven-plugin/pom.xml
@@ -36,10 +36,12 @@
     <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-core</artifactId>
+      <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-compat</artifactId>
+      <scope>provided</scope>
     </dependency>
     <!-- dependencies to annotations -->
     <dependency>
diff --git 
a/hyracks-fullstack/hyracks/hyracks-maven-plugins/license-automation-plugin/pom.xml
 
b/hyracks-fullstack/hyracks/hyracks-maven-plugins/license-automation-plugin/pom.xml
index 0b563d5..5e99cf1 100644
--- 
a/hyracks-fullstack/hyracks/hyracks-maven-plugins/license-automation-plugin/pom.xml
+++ 
b/hyracks-fullstack/hyracks/hyracks-maven-plugins/license-automation-plugin/pom.xml
@@ -65,6 +65,7 @@
     <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-core</artifactId>
+      <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.maven.plugins</groupId>
@@ -111,6 +112,7 @@
     <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-compat</artifactId>
+      <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.hyracks</groupId>

--
To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21972?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://asterix-gerrit.ics.uci.edu/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Change-Id: I336c115eef1eea6fe899b863e23bc368f2672647
Gerrit-Change-Number: 21972
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Blow <[email protected]>

Reply via email to