Return-Path: Delivered-To: apmail-maven-issues-archive@locus.apache.org Received: (qmail 87441 invoked from network); 14 Apr 2006 00:51:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Apr 2006 00:51:11 -0000 Received: (qmail 68124 invoked by uid 500); 14 Apr 2006 00:51:09 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 68074 invoked by uid 500); 14 Apr 2006 00:51:09 -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 68065 invoked by uid 99); 14 Apr 2006 00:51:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Apr 2006 17:51:09 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [63.246.20.114] (HELO 63-246-20-114.contegix.com) (63.246.20.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Apr 2006 17:51:09 -0700 Received: (qmail 29108 invoked by uid 89); 14 Apr 2006 00:50:48 -0000 Received: from unknown (HELO codehaus01.managed.contegix.com) (127.0.0.1) by smtp.domain.com with SMTP; 14 Apr 2006 00:50:48 -0000 Message-ID: <120548856.1144975848455.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Thu, 13 Apr 2006 19:50:48 -0500 (CDT) From: "Carlos Sanchez (JIRA)" To: issues@maven.apache.org Subject: [jira] Commented: (MNG-2225) Classloader problem when adding jars to M2_HOME In-Reply-To: <73732230.1144952268489.JavaMail.haus-jira@codehaus01.managed.contegix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://jira.codehaus.org/browse/MNG-2225?page=comments#action_63538 ] Carlos Sanchez commented on MNG-2225: ------------------------------------- do you mean tweaking the PluginManager code or configuration? > Classloader problem when adding jars to M2_HOME > ----------------------------------------------- > > Key: MNG-2225 > URL: http://jira.codehaus.org/browse/MNG-2225 > Project: Maven 2 > Type: Bug > Components: Dependencies > Versions: 2.0.4 > Reporter: Carlos Sanchez > Priority: Critical > Fix For: 2.0.5 > Attachments: testwagonscm.tgz > > > Added these jars to M2_HOME/custom to allow using scm based remote repos > http://www.ibiblio.org/maven2/org/apache/maven/scm/maven-scm-api/1.0-beta-2/maven-scm-api-1.0-beta-2.jar > http://www.ibiblio.org/maven2/org/apache/maven/scm/maven-scm-manager-plexus/1.0-beta-2/maven-scm-manager-plexus-1.0-beta-2.jar > http://www.ibiblio.org/maven2/org/apache/maven/scm/maven-scm-provider-svn/1.0-beta-2/maven-scm-provider-svn-1.0-beta-2.jar > http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/wagon/wagon-scm/1.0-alpha-7-SNAPSHOT/wagon-scm-1.0-alpha-7-20060308.183410-3.jar > bin/m2.conf > main is org.apache.maven.cli.MavenCli from plexus.core.maven > set maven.home default ${user.home}/m2 > [plexus.core] > load ${maven.home}/core/*.jar > [plexus.core.maven] > load ${maven.home}/custom/*.jar > load ${maven.home}/lib/*.jar > When running "mvn install" and "mvn testwagonscm:test" in the attached test case you get a ClassCastException although the Class to assign to and the assigned one are the same. The problem seems to be that they come from different classloaders. This problem makes the project-info-report:scm goal fail. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira