gnodet-bot commented on code in PR #30723:
URL: https://github.com/apache/camel/pull/30723#discussion_r4772439549


##########
docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc:
##########
@@ -393,3 +393,28 @@ a later row had was dropped silently, and a later element 
that was not a `Map` f
 every element must be a `Map`, and a row whose keys differ from the keys of 
the first row fails with a
 `DuckDbException` that names the row. A route that inserts rows with different 
keys must give every row the same keys
 (with `null` for a missing value).
+
+=== camel-tooling-maven and camel-launcher - Maven and Maven Resolver upgrade
+
+The bundled Maven and Maven Resolver libraries in `camel-tooling-maven` and 
`camel-launcher` have been upgraded:
+
+- `org.apache.maven` artifacts: `3.9.16` → `3.10.2`
+- `org.apache.maven.resolver` artifacts: `1.9.27` → `2.0.26`
+- `eu.maveniverse.maven.mima` artifacts: `2.4.48` → `3.0.2`
+
+Maven Resolver 2.x ships with Maven 3.10.x and Maven 4. Users who embed or 
extend
+`camel-tooling-maven` and reference `maven-resolver-transport-http` directly 
must rename
+that dependency to `maven-resolver-transport-apache` (the artifact was renamed 
in Resolver 2.x).
+
+**Timeout system properties renamed.** Maven Resolver 2.x reads
+`aether.transport.http.connectTimeout` and 
`aether.transport.http.requestTimeout` (in millis).
+The previous names `aether.connector.connectTimeout` and 
`aether.connector.requestTimeout` are
+no longer recognised. The default connect timeout increased from 10 seconds to 
30 seconds; Camel
+keeps its own default of 60 seconds for the request timeout. Update any 
`JAVA_TOOL_OPTIONS` or
+JVM system property overrides to the new names.

Review Comment:
   💡 **Broader rename family not mentioned.** The guide names the two timeout 
keys but omits the other commonly-used renamed properties. `connectionMaxTtl` 
is especially relevant since Camel's own CI uses it (see 
`install-mvnd/action.yml`). Consider:
   
   ```suggestion
   `aether.transport.http.connectTimeout` and 
`aether.transport.http.requestTimeout` (in millis).
   The previous names `aether.connector.connectTimeout` and 
`aether.connector.requestTimeout` are
   no longer recognised; the full rename table (including `connectionMaxTtl`, 
`retryHandler.count`,
   `preemptiveAuth`, etc.) is in the 
https://maven.apache.org/resolver/upgrading-resolver.html#step-6-rename-configuration-keys[Resolver
 2.x upgrade guide].
   The default connect timeout increased from 10 seconds to 30 seconds; Camel
   keeps its own default of 60 seconds for the request timeout. Update any 
`JAVA_TOOL_OPTIONS` or
   JVM system property overrides to the new names.
   ```



##########
.github/actions/install-mvnd/action.yml:
##########
@@ -68,6 +68,6 @@ runs:
         DISTRIBUTION: ${{ inputs.distribution }}
     - id: mvnd-opts
       run: |
-        echo "MVND_OPTS=-B -P apache-snapshots -V -e -ntp -Dmvnd.threads=2 
-Daether.connector.http.connectionMaxTtl=120 
-Daether.connector.requestTimeout=300000 -Daether.dependencyCollector.impl=bf 
-Dmaven.artifact.threads=25 -Dci.env.name=github.com 
-Dsurefire.rerunFailingTestsCount=2 -Dfailsafe.rerunFailingTestsCount=2" >> 
$GITHUB_ENV
+        echo "MVND_OPTS=-B -P apache-snapshots -V -e -ntp -Dmvnd.threads=2 
-Daether.connector.http.connectionMaxTtl=120 
-Daether.connector.requestTimeout=300000 
-Daether.transport.http.requestTimeout=300000 
-Daether.dependencyCollector.impl=bf -Dmaven.artifact.threads=25 
-Dci.env.name=github.com -Dsurefire.rerunFailingTestsCount=2 
-Dfailsafe.rerunFailingTestsCount=2" >> $GITHUB_ENV

Review Comment:
   ⚠️ **Missing `connectionMaxTtl` rename.** The PR adds 
`-Daether.transport.http.requestTimeout=300000` (new name) alongside the old 
key — but does **not** add `-Daether.transport.http.connectionMaxTtl=120` 
alongside `-Daether.connector.http.connectionMaxTtl=120`. Resolver 2.x reads 
`aether.transport.http.connectionMaxTtl`, not the old key (the Resolver 2.x 
upgrade guide lists this in the renamed-keys table). Without the new property, 
the CI connection TTL silently falls back to the Resolver 2.x default of 300 
seconds instead of the intended 120.
   
   ```suggestion
           echo "MVND_OPTS=-B -P apache-snapshots -V -e -ntp -Dmvnd.threads=2 
-Daether.connector.http.connectionMaxTtl=120 
-Daether.transport.http.connectionMaxTtl=120 
-Daether.connector.requestTimeout=300000 
-Daether.transport.http.requestTimeout=300000 
-Daether.dependencyCollector.impl=bf -Dmaven.artifact.threads=25 
-Dci.env.name=github.com -Dsurefire.rerunFailingTestsCount=2 
-Dfailsafe.rerunFailingTestsCount=2" >> $GITHUB_ENV
   ```



##########
tooling/camel-tooling-maven/src/main/java/org/apache/camel/tooling/maven/MavenDownloaderImpl.java:
##########
@@ -928,9 +929,8 @@ static Throwable connectFailure(Throwable e) {
                     return t;
                 }
                 // the connect timeout of an HTTP client, by name to need none 
of them on the classpath:
-                // org.apache.http.conn.ConnectTimeoutException (HttpClient 4, 
the transport of Maven Resolver 1.x),
-                // org.apache.hc.client5.http.ConnectTimeoutException 
(HttpClient 5), whose message is not
-                // "Connect timed out", and 
java.net.http.HttpConnectTimeoutException (the JDK HTTP client)
+                // org.apache.hc.client5.http.ConnectTimeoutException 
(HttpClient 5, the transport of Maven Resolver 2.x),
+                // whose message is not "Connect timed out", and 
java.net.http.HttpConnectTimeoutException (JDK HTTP client)

Review Comment:
   ⚠️ **Wrong transport version in comment.** `maven-resolver-transport-apache` 
2.0.26 uses **HttpClient 4.5.14** 
(`org.apache.httpcomponents:httpclient:4.5.14`), not HttpClient 5. The comment 
now says "HttpClient 5, the transport of Maven Resolver 2.x" — that's 
incorrect. The exception class thrown at runtime is 
`org.apache.http.conn.ConnectTimeoutException` (HC4), which was removed from 
this comment. The `.endsWith("ConnectTimeoutException")` check still catches it 
correctly, so there's no functional bug, but the comment misleads future 
maintainers. See the [official Maven dep 
page](https://maven.apache.org/resolver/maven-resolver-transport-apache/dependencies.html).
   
   ```suggestion
                   // org.apache.http.conn.ConnectTimeoutException (HttpClient 
4, the transport of Maven Resolver 2.x),
                   // org.apache.hc.client5.http.ConnectTimeoutException 
(HttpClient 5, an alternative transport),
   ```



-- 
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