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:11 UTC
[maven-resolver] 01/01: [MRESOLVER-238] Create shaded transport-http
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>