Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 604EA11361 for ; Tue, 22 Apr 2014 14:22:58 +0000 (UTC) Received: (qmail 39850 invoked by uid 500); 22 Apr 2014 14:22:53 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 39714 invoked by uid 500); 22 Apr 2014 14:22:53 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 39702 invoked by uid 99); 22 Apr 2014 14:22:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Apr 2014 14:22:52 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gudnabrsam@gmail.com designates 209.85.160.172 as permitted sender) Received: from [209.85.160.172] (HELO mail-yk0-f172.google.com) (209.85.160.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Apr 2014 14:22:47 +0000 Received: by mail-yk0-f172.google.com with SMTP id 200so4620409ykr.3 for ; Tue, 22 Apr 2014 07:22:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=8I+NJPWXV80D018rwNoYrDnaepNtRPLw89A9v/G8VGw=; b=R6+jsqZYh2k2psmh+1jC5p+/t8sRixda3pIpebHW0HbZ99v4NZKUkmH9mpfuqqPoyh 4ZV6xNX/M+F+pstwaVmtlT3IBNHZbXJ15syF8wC9F0lfH904BaON46CmPK7B7MqJsdaM NaLn+3WuXrkLSRvV2GLGygBDcUxSVdB/SSE+qojmrGAbNjl+WaWPoLJvXGwOj+J4INiD nSBBp7SuU/BvhcdyphreQdhBWtpeIlhYyipTkk39IvnUSVgiKaUJ8JJVnLUqdTIrDpIW pMv5RsxSCjvT5dCMGjwfnxK4vumzyvGK749WKH67TNkKiY/V9FLv1UgtSEa+R94Euf26 4jrQ== MIME-Version: 1.0 X-Received: by 10.236.19.99 with SMTP id m63mr2884156yhm.134.1398176547121; Tue, 22 Apr 2014 07:22:27 -0700 (PDT) Received: by 10.170.60.77 with HTTP; Tue, 22 Apr 2014 07:22:27 -0700 (PDT) Reply-To: gudnabrsam@gmail.com In-Reply-To: References: Date: Tue, 22 Apr 2014 09:22:27 -0500 Message-ID: Subject: Re: [all] Dependency resolution. From: Matt Benson To: Commons Developers List Content-Type: multipart/alternative; boundary=089e01634dd46cb0e004f7a258e5 X-Virus-Checked: Checked by ClamAV on apache.org --089e01634dd46cb0e004f7a258e5 Content-Type: text/plain; charset=UTF-8 Note that you can use [lang] v2 and v3 together in the same project as both the Maven coordinates and package names have been changed with the major version upgrade. Matt On Tue, Apr 22, 2014 at 9:07 AM, Petar Tahchiev wrote: > Hi guys, > > I found out I'm using quite a lot of the commons-*:commons-* artifacts in > my project so I decided to upgrade them to their new version in > org.apache.commons:whatever. I only upgraded those that I could so now I > have for instance org.apache.commons:commons-lang3 in my classpath, but > unfortunately I also have commons-confguration:commons-configuration:1.9 > and there I get exceptions like these: > > Caused by: java.lang.NoClassDefFoundError: > org/apache/commons/configuration/ConfigurationException > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2521) > at java.lang.Class.getDeclaredMethods(Class.java:1845) > at > > org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:402) > at > > org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:332) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:908) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) > > > So because commons-configuration:commons-configuration requires > commons-lang2 as a dependency I'm forced to downgrade to commons-lang2. > > My request is this: is it possible to upgrade ALL the commons artifacts to > the correct repository groupId (org.apache.commons) and upgrade their > dependencies? Most of them are already there, and those which are not will > most certainly benefit from a new release (i guess there's been quite a > while they haven't been released and there might be some resolved issues in > the JIRA). > > Is there anyone against having a new release on: commons-logging, > commons-fileupload, commons-codec, > commons-configuration,commons-beanutils,commons-digester and the rest of > the projects which are still using the incorrect groupId. > > -- > Regards, Petar! > Karlovo, Bulgaria. > --- > Public PGP Key at: > https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611 > Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611 > --089e01634dd46cb0e004f7a258e5--