You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2022/02/01 13:40:10 UTC

[maven-resolver] branch MRESOLVER-238-shaded-transport-http created (now 6b55cd6)

This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a change to branch MRESOLVER-238-shaded-transport-http
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git.


      at 6b55cd6  [MRESOLVER-238] Create shaded transport-http

This branch includes the following new commits:

     new 6b55cd6  [MRESOLVER-238] Create shaded transport-http

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[maven-resolver] 01/01: [MRESOLVER-238] Create shaded transport-http

Posted by cs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a commit to branch MRESOLVER-238-shaded-transport-http
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git

commit 6b55cd62a7e2c5adc6a4e63c603b561732fcff8f
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Tue Feb 1 14:39:30 2022 +0100

    [MRESOLVER-238] Create shaded transport-http
    
    That looks very same to that of wagon-http.
    
    ---
    
    https://issues.apache.org/jira/browse/MRESOLVER-238
---
 maven-resolver-transport-http/pom.xml | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/maven-resolver-transport-http/pom.xml b/maven-resolver-transport-http/pom.xml
index ec5462b..b84bef7 100644
--- a/maven-resolver-transport-http/pom.xml
+++ b/maven-resolver-transport-http/pom.xml
@@ -169,6 +169,41 @@
           </archive>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-shade-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>shade</goal>
+            </goals>
+            <configuration>
+              <shadedArtifactAttached>true</shadedArtifactAttached>
+              <shadedClassifierName>shaded</shadedClassifierName>
+              <artifactSet>
+                <includes>
+                  <include>org.apache.httpcomponents:httpclient</include>
+                  <include>org.apache.httpcomponents:httpcore</include>
+                  <include>commons-codec:commons-codec</include>
+                </includes>
+              </artifactSet>
+              <shadedArtifactAttached>true</shadedArtifactAttached>
+              <shadedClassifierName>shaded</shadedClassifierName>
+              <relocations>
+                <relocation>
+                  <pattern>org.apache.http</pattern>
+                  <shadedPattern>org.eclipse.aether.transport.http.httpclient</shadedPattern>
+                </relocation>
+                <relocation>
+                  <pattern>org.apache.commons.codec</pattern>
+                  <shadedPattern>org.eclipse.aether.transport.http.commons.codec</shadedPattern>
+                </relocation>
+              </relocations>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 </project>