Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 42E3F10143 for ; Wed, 10 Dec 2014 22:40:31 +0000 (UTC) Received: (qmail 17639 invoked by uid 500); 10 Dec 2014 22:40:26 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 17595 invoked by uid 500); 10 Dec 2014 22:40:26 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 17577 invoked by uid 99); 10 Dec 2014 22:40:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2014 22:40:25 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aleks.dimitrov@gmail.com designates 209.85.212.177 as permitted sender) Received: from [209.85.212.177] (HELO mail-wi0-f177.google.com) (209.85.212.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2014 22:40:18 +0000 Received: by mail-wi0-f177.google.com with SMTP id l15so6751680wiw.16 for ; Wed, 10 Dec 2014 14:39:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=Q/ljVQR77gfa+vgm277l9LpNs2ByoBXGC8x3EXs1Pmg=; b=nC2pziuniSaQWN2onAcK80zvFbT0JshhFDhEFEFltVvJY25zi6WoG1YJa4LXM/BwzQ JZfjcSaVJzcZpnUeWMszMr+uqyumGC7LvE7xyuIYe8I+YBjuN3E/NnnctWL2P+B8iMfb G46BSL3MN+Lc44p5vY7sTIW2TEeScYL/mu3aVUM5XrutCf8SNhjX4EtBxn1nbQiuHgYa +B2k5OTJvEB7yfRAiNPjJ7kaWyzt8KAtpwy9XYfXgNfQ/p7TGV1n2rl8UoxSy+SYzPhy 9oelJSMHsAhEdzupJPg6f9h9Ur4bF8Sr94m0g/e/lNtkO894t7P71ryfWF4LKx9IPEcY Dl6w== X-Received: by 10.180.109.3 with SMTP id ho3mr10118541wib.39.1418251198038; Wed, 10 Dec 2014 14:39:58 -0800 (PST) Received: from minsk (stgt-5f7018f4.pool.mediaWays.net. [95.112.24.244]) by mx.google.com with ESMTPSA id t6sm7547118wjf.49.2014.12.10.14.39.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Dec 2014 14:39:57 -0800 (PST) From: Aleksandar Dimitrov X-Google-Original-From: Aleksandar Dimitrov Date: Wed, 10 Dec 2014 23:57:39 +0100 To: user@uima.apache.org Subject: uima-as-activemq problematic dependency on activemq-all Message-ID: <20141210225739.GD3396@minsk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="neYutvxvOLaeuPCA" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Checked: Checked by ClamAV on apache.org --neYutvxvOLaeuPCA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, While the download instructions of ActiveMq[0] suggest including activemq-a= ll in your pom.xml, this is actually a bad idea. See the discussion here on ticket AMQ-5009 [1]. The .jar is built using the Maven shade plugin, which directly dumps libraries in the classpath, without allowing usage of the Maven directive. If a project pulls in activemq-all, it now *has* to use the implementations= of all its libraries compiled into the jar, and cannot depend on them directly. This is clearly not a good idea, and will indeed cause problems =E2=80=94 f= or example with SLF4J. If I write an application that depends on SLF4J for logging, and uima-as-scaleout, the transitively pulled in activemq-all will cause a clas= spath conflict for the SLF4J library. This problem is recorded in UIMA-3633 [2], = but the proposed fix does not work (as of version uima-as-activemq 2.6.0.) Nor does it seem to be the appropriate fix, since depending on the Maven-shaded= jar could cause problems not only with SLF4J. A better solution would be to depend on the activemq components separately.= My current workaround in my application's pom.xml reads like this: =E2=80=A6 =E2=80=A6 org.apache.uima uimaj-as-activemq 2.6.0 org.apache.activemq activemq-all org.apache.activemq activemq-core 5.7.0 =E2=80=A6 Note that I probably will need to include more than just activemq-core. While this *works* it should be clear, that it is not a very satisfactory solution. I propose pre-empting the decision on AMQ-5009, and switching away =66rom the dependency on activemq-all, which in any case should not be depe= nded upon because of the way it dumps all _its_ dependencies in the classpath. Regards, Aleks PS: I'm not subscribed to the dev-list, so if this is supposed to go there,= I could cross post it later, or you can feel free to cross-post it there. --- [0] http://activemq.apache.org/activemq-5100-release.html (look for "Getting the Binaries using Maven 2") [1] https://issues.apache.org/jira/browse/AMQ-5009 [2] https://issues.apache.org/jira/browse/UIMA-3633 --neYutvxvOLaeuPCA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUiM/jAAoJEA4fDuQpC7qF5YEP/R3ZnseDEvr3zqv/S/Nu7atr 0yC0lRDlqHcLkts738CldHqvqkrXpBXzkPyTL/PyNuyDHT9ttUxtirgHD+21dmyJ RGkPrPEz4QpJcnCJFIZD5arYVZiCU9dtmVmTT/Z7c6OcTnrq3ETfKjDm1EafIUcJ Jeo1iiv3FZoQo9KMiC3PUs4o6F70KCyxQ+vLdZByRlwc8wbabBHvu6BJhWK3S6e1 Dgeo9fWvmm25WtZ4K0NAcCj6Kdc8n5r1TVH/+48G8wp6k9sPfDggQr2T8S05p9YP Bl2TUFaTAhT5yRcrIBv9XbsD4AkEmdLaurGJUzAriMPF2Ue1kkO1F75ayXAj4Qbl yAVwBlLkpUkWvGejJw5u72grk9qCfxMbDhgO7rp73VnWL4UIw5jS+ISm8SZRSUPU r4P9ty7Mmb0WfZLHwG0cRygpAc8kbJ/IhCZ8YB6aHH4MlrPSJmwZWjoCdUSTLovb sqUCIkAoLkJnDhfJKui534kcJ+gVXYbiYoAeVB5Vy9SXvrHumKMKTASf7KiNEdVb 8XVtEDCQofmdtklgymYKskHcPq30Lk3Gl1+OCL2YjIKVGOAkpQr/5gG8t8Nu/7ns vNuSuev5GMvRm6tXJns1sAVWokUFrAQOqvliNFFmuFw4F95CvtH+lH96RPut+dqc goFs2VSG5Kf4IKyoIc3J =uSqb -----END PGP SIGNATURE----- --neYutvxvOLaeuPCA--