You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/04/08 17:09:47 UTC

[GitHub] [maven] cstamas opened a new pull request, #711: [MNG-7454] Include resolver-transport-http in Maven

cstamas opened a new pull request, #711:
URL: https://github.com/apache/maven/pull/711

   But keep Wagon as default transport. This PR merely includes
   resolver http and file transport and switches wagon-http
   to non-shaded one.
   
   Changes:
   * switch to non-shaded wagon-http (as httpClient is now shared)
   * include resolver http and file transport
   * override resolver default behaviour (native transport preferred over wagon, when both on classpath)
   * provide simplistic means to choose transport
   
   The chosen transport can be seen in debug (-X) output on line
   `[DEBUG] Using transporter XXX...`
   
   The `-Dmaven.transport` simplistic switch can be used to choose transport:
   * not set: default, that is Wagon
   * `wagon`: explicitly sets Wagon
   * `resolver`: explicitly sets resolver native transports (file and http)
   * `auto`: relies on resolver "auto discovery" (priorities, etc). This is MUST to keep transport pluggable with 3rd party transports. In fact, this was the default so far in Maven, along with the fact that native resolver transports were not included (as resolver prefers native ones over Wagon).
   


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven] michael-o commented on a diff in pull request #711: [MNG-7454] Include resolver-transport-http in Maven master

Posted by GitBox <gi...@apache.org>.
michael-o commented on code in PR #711:
URL: https://github.com/apache/maven/pull/711#discussion_r850755008


##########
pom.xml:
##########
@@ -65,7 +65,7 @@ under the License.
     <cipherVersion>2.0</cipherVersion>
     <modelloVersion>2.0.0</modelloVersion>
     <jxpathVersion>1.3</jxpathVersion>
-    <resolverVersion>1.7.2</resolverVersion>
+    <resolverVersion>1.7.3</resolverVersion>

Review Comment:
   This is basically irrelevant since we are going to 1.8.0 anyway



##########
apache-maven/pom.xml:
##########
@@ -63,21 +63,10 @@ under the License.
     <dependency>
       <groupId>org.apache.maven.wagon</groupId>
       <artifactId>wagon-http</artifactId>
-      <classifier>shaded</classifier>
-      <exclusions>
-        <exclusion>
-          <groupId>org.apache.httpcomponents</groupId>
-          <artifactId>httpclient</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>org.apache.httpcomponents</groupId>
-          <artifactId>httpcore</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>org.apache.maven.wagon</groupId>
-          <artifactId>wagon-http-shared</artifactId>

Review Comment:
   Create a followup ticket for WAGON to drop the shaded artifact.



##########
maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java:
##########
@@ -78,6 +78,22 @@
 @Named
 public class DefaultRepositorySystemSessionFactory
 {
+    private static final String MAVEN_TRANSPORT_KEY = "maven.transport";

Review Comment:
   Must be: `MAVEN_RESOLVER_TRANSPORT =  maven.resolver.transport`



##########
maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java:
##########
@@ -78,6 +78,22 @@
 @Named
 public class DefaultRepositorySystemSessionFactory
 {
+    private static final String MAVEN_TRANSPORT_KEY = "maven.transport";
+
+    private static final String MAVEN_TRANSPORT_WAGON = "wagon";
+
+    private static final String MAVEN_TRANSPORT_RESOLVER = "resolver";

Review Comment:
   Should have been: `internal` or similar since Resolver decides what is used internally.



-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven] cstamas merged pull request #711: [MNG-7454] Include resolver-transport-http in Maven master

Posted by GitBox <gi...@apache.org>.
cstamas merged PR #711:
URL: https://github.com/apache/maven/pull/711


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org