Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 86000200BDA for ; Tue, 29 Nov 2016 04:29:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 84916160B22; Tue, 29 Nov 2016 03:29:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CF264160B0D for ; Tue, 29 Nov 2016 04:29:01 +0100 (CET) Received: (qmail 7140 invoked by uid 500); 29 Nov 2016 03:29:00 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 7128 invoked by uid 99); 29 Nov 2016 03:29:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2016 03:29:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1BCCCC04BC for ; Tue, 29 Nov 2016 03:29:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.399 X-Spam-Level: ** X-Spam-Status: No, score=2.399 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, HTML_OBFUSCATE_05_10=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 8bR0rWd1Ay62 for ; Tue, 29 Nov 2016 03:28:57 +0000 (UTC) Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 94E9D5F589 for ; Tue, 29 Nov 2016 03:28:57 +0000 (UTC) Received: by mail-io0-f173.google.com with SMTP id j65so268464255iof.0 for ; Mon, 28 Nov 2016 19:28:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ponSwY093HjxJZhLKSSxxVojBJ6I9gCStly/MiK0iDY=; b=eFe+mp4QXmQRwh3q2lBdrxvKYNxUb+pDNJid3SvkyHH26WavYvxJKvlhiJ5afVzwxK hsGLQSCBWw1LSYWcpaBnAcoipjCwxDBeRc92oJ+JHeAmBQ0Eek+OWjhasF2IZ3G/DPnN BG7gIN8kUiLngVvqwhUtfsAqUHZgAvXRqvg7xiTUHEYFGBqzUK4yg9lBU9Bk26baKoqW QYtbO6CsmeQa9i/1Sbz2YGH/SYfebGJfBYF4VguID/aZTdQCLefrbgBnhhBzC6mjvah+ 7NoqO35uDVWKsrVwOQqH44lDKYrP0lD9X44RaBW6GK8dYRA01SfpS/+EKjDlXbcWfQyJ wubw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ponSwY093HjxJZhLKSSxxVojBJ6I9gCStly/MiK0iDY=; b=F4kZs3M9A4qE0kBsRyC+C/oLSBCvLsqQ/7HP6JUtdXsj0hFk4CjiyQaH6CgVM4D33C +L6O+kUqChoa2u6hKPpY6+7LH6pDpNN+aI1wZbm3uHXG/VSREq4KVWWDvgO1w7mzediR BisMAU5h+S7xv092blchAYL8Vb5nNPDu+6y7KD8aluXHlI2u5wbMc7ZG4WSiv/qxVfrb vhWxsZZVoa/Q4XCJ+0MwbCFI4ilwEoHJJI/D2t/NZUSUGyFM1LxhxtlUKEZTnjVlETbL G+ooc0q/rGajo7Fnt+6Q9F1QpK4yUM5awgrzYNSwaAQ0WtDdNqy5QkaH6noD2U/oCMyT onyw== X-Gm-Message-State: AKaTC03w4pJIo7sxW5nmsLmrIfDM0I0fnyxsK6qrYUj3vL8ThrZxh0t06M8Fv0dijmOBGsAcIMoqEjOoRkKz0g== X-Received: by 10.107.136.164 with SMTP id s36mr21944533ioi.214.1480390136880; Mon, 28 Nov 2016 19:28:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.223.198 with HTTP; Mon, 28 Nov 2016 19:28:56 -0800 (PST) In-Reply-To: References: From: Dan Tran Date: Mon, 28 Nov 2016 19:28:56 -0800 Message-ID: Subject: Re: Maven Classloader issue at Wagon To: Maven Developers List Content-Type: multipart/alternative; boundary=001a113eb2c23cedd405426830b8 archived-at: Tue, 29 Nov 2016 03:29:02 -0000 --001a113eb2c23cedd405426830b8 Content-Type: text/plain; charset=UTF-8 I went ahead to deploy the fix for user to try out -Dan On Sun, Nov 27, 2016 at 10:48 PM, Dan Tran wrote: > I got it working by switching > > componentConfigurator.configureComponent( wagon, plexusConf, container.getContainerRealm() > ); > > for > > componentConfigurator.configureComponent( wagon, plexusConf, > (ClassRealm)this.getClass().getClassLoader() ); > > Thoughts? > > -Dan > > On Sun, Nov 27, 2016 at 9:34 PM, Dan Tran wrote: > >> >> I am interested fixing the long waited issue >> https://issues.apache.org/jira/browse/WAGON-454 ( since introduction of >> Maven 3) >> >> where a wagon user can configure additional wagon provider configuration >> at maven settings >> >> It boils down to this line >> >> https://github.com/mojohaus/wagon-maven-plugin/blob/master/ >> src/main/java/org/codehaus/mojo/wagon/shared/DefaultWagon >> Factory.java#L211 >> >> where plexus not able load the desired class >> >> Caused by: java.lang.ClassNotFoundException: >> org.apache.maven.wagon.providers.ssh.knownhost.NullKnownHostProvider >> at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy. >> loadClass(SelfFirstStrategy.java:50) >> at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchroni >> zedLoadClass(ClassRealm.java:271) >> at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass( >> ClassRealm.java:247) >> at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass( >> ClassRealm.java:239) >> at org.codehaus.plexus.component.configurator.converters.Abstra >> ctConfigurationConverter.getClassForImplementatio >> nHint(AbstractConfigurationConverter.java:121) >> >> >> Advice is very much appreciated >> >> -Dan >> >> >> > --001a113eb2c23cedd405426830b8--