Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CDC7718079 for ; Thu, 2 Jul 2015 13:54:04 +0000 (UTC) Received: (qmail 75682 invoked by uid 500); 2 Jul 2015 13:54:04 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 75628 invoked by uid 500); 2 Jul 2015 13:54:04 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 75615 invoked by uid 99); 2 Jul 2015 13:54:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2015 13:54:04 +0000 Date: Thu, 2 Jul 2015 13:54:04 +0000 (UTC) From: "Michael McCarthy (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MSHADE-197) Shade fails to relocate packages for all classes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Michael McCarthy created MSHADE-197: --------------------------------------- Summary: Shade fails to relocate packages for all classes Key: MSHADE-197 URL: https://issues.apache.org/jira/browse/MSHADE-197 Project: Maven Shade Plugin Issue Type: Bug Affects Versions: 2.4 Environment: Windows 7, Maven 3.0.5 Reporter: Michael McCarthy I attempted to relocate the org.apache.http.* packages using the shade plugin on the AWS Java SDK. This fails to update the location for at least one class, com.amazonaws.services.s3.model.S3ObjectInputStream. I manually updated the source code to use the shaded location and it compiled without issue: import org.shaded.http.client.HttpClient; import org.shaded.http.client.methods.HttpRequestBase; import org.shaded.http.conn.EofSensorInputStream; Before making the above change, the error I get is: [ERROR] \dev\CSJ\aws\temp\aws-sdk-java\aws-java-sdk-s3\src\main\java\com\amazonaws\services\s3\internal\S3ObjectResponseHandler.java:[54,26] error: no suitable constructor found for S3ObjectInputStream(InputStream,org.shaded.http.client.methods.HttpRequestBase) The configuration I used in pom.xml was: org.apache.maven.plugins maven-shade-plugin 2.4 com.amazonaws:* org.apache.httpcomponents:* org.apache.http org.shaded.http package shade See http://mail-archives.apache.org/mod_mbox/maven-users/201506.mbox/%3C558BE1C5.2020400%40tribloom.com%3E for more details. This thread has instructions on how to reproduce as well as links to a Github project with the changes already made and the error easy to reproduce. -- This message was sent by Atlassian JIRA (v6.3.4#6332)