Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF3BA1819D for ; Thu, 7 Jan 2016 14:26:16 +0000 (UTC) Received: (qmail 13366 invoked by uid 500); 7 Jan 2016 14:26:15 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 13292 invoked by uid 500); 7 Jan 2016 14:26:15 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 13271 invoked by uid 99); 7 Jan 2016 14:26:14 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2016 14:26:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 30D0F1A0258 for ; Thu, 7 Jan 2016 14:26:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.799 X-Spam-Level: X-Spam-Status: No, score=0.799 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, KAM_ASCII_DIVIDERS=0.8, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=cwareitservice.onmicrosoft.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id twdc4YiKyv-g for ; Thu, 7 Jan 2016 14:26:05 +0000 (UTC) Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0114.outbound.protection.outlook.com [157.56.112.114]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id CB6D642A21 for ; Thu, 7 Jan 2016 14:26:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CWareITService.onmicrosoft.com; s=selector1-cware-de0c; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Rz9B2d9NOxC82i7FWPKiaU5h08AMe6N+DspI2eu/RrA=; b=D0eEp0+9+YMqgzSB1gNcNv3pEDHPfhejk7lRY3uxvKlQ3UcGNLrjZH7+ZNyxTDfEuGC8WNz0qQmuGNIuXZRUHJuhoqVmifdzup+3J+oTlYSir65w6ZwkfvkxbC0i75Q6y9LIX0hqpyaqxdd1LuPWgwqephAdql2BMwr2wzR8xfQ= Received: from DB5PR05MB1285.eurprd05.prod.outlook.com (10.162.157.147) by DB5PR05MB1285.eurprd05.prod.outlook.com (10.162.157.147) with Microsoft SMTP Server (TLS) id 15.1.361.13; Thu, 7 Jan 2016 14:25:57 +0000 Received: from DB5PR05MB1285.eurprd05.prod.outlook.com ([10.162.157.147]) by DB5PR05MB1285.eurprd05.prod.outlook.com ([10.162.157.147]) with mapi id 15.01.0361.006; Thu, 7 Jan 2016 14:25:57 +0000 From: Christofer Dutz To: "users@maven.apache.org" Subject: AW: How to manage dependency "includes"? Thread-Topic: How to manage dependency "includes"? Thread-Index: AQHRRslJMDoZ2CsTgEGOfdEvDIRAY57riawAgASWF/o= Date: Thu, 7 Jan 2016 14:25:57 +0000 Message-ID: References: ,<568A9B76.5040400@artifact-software.com> In-Reply-To: <568A9B76.5040400@artifact-software.com> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=christofer.dutz@c-ware.de; x-originating-ip: [132.245.56.101] x-microsoft-exchange-diagnostics: 1;DB5PR05MB1285;5:lBAWuXZ3iNQAZTuNigoJJEs9gE/bnM7S0XmMsgHRRuILfmCUJakkjpPvsqE7EhWHTyhaXFaXSeToJQKC6IzcF9tLyoTsJSLbrCSbPg4e1akbv35yoLKx4dZHGxl8zpB4yYh5D6L3C+CvZ5EbE9lciw==;24:UoK8CFn2dsZFkehQwQom/BBseDosHMbMIR6rLIHGU5NqhsONx80mePsptFJeH8vNqF6AmlYsAilmVSLdjfsdZPgIGAHAIM4XaCysutgr9xs= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(42134001)(42139001);SRVR:DB5PR05MB1285; x-ms-office365-filtering-correlation-id: 5c213ca9-bf07-4ad2-bf01-08d3176e7567 x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046);SRVR:DB5PR05MB1285;BCL:0;PCL:0;RULEID:;SRVR:DB5PR05MB1285; x-forefront-prvs: 0814A2C7A3 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(51444003)(479174004)(199003)(377454003)(189002)(252514010)(5004730100002)(10400500002)(11100500001)(106116001)(106356001)(5002640100001)(92566002)(2501003)(2900100001)(77096005)(15975445007)(2950100001)(2906002)(586003)(102836003)(6116002)(3846002)(105586002)(1220700001)(1096002)(40100003)(229853001)(450100001)(76576001)(2351001)(5008740100001)(122556002)(75402003)(87936001)(74482002)(86362001)(19580395003)(19580405001)(101416001)(66066001)(5003600100002)(74316001)(54356999)(50986999)(33656002)(81156007)(76176999)(110136002)(97736004)(5001960100002)(107886002)(189998001);DIR:OUT;SFP:1102;SCL:1;SRVR:DB5PR05MB1285;H:DB5PR05MB1285.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: c-ware.de does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: c-ware.de X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jan 2016 14:25:57.2165 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9d387546-1437-4b89-846c-691d64a7e74d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR05MB1285 Hi Ron, Well I guess that's out of the question.=20 We were thinking about that, but the normal workflow would be: - Search in the company nexus which lib provides a given package - Include that in the pom That would work around the "managed-pom" approach. So users would have to l= ook at each dependency, if there is a special pom version in the system. I = think that's definitely not going to work.=20 In this company there are about 200 developers working on 50-60 different p= rojects, that are assembled to about 20 different products. Currently we'll= live with excluding stuff and having users add missing dependencies during= the unit-, integration- , acceptance-test phases, but it would have been e= asier with some "exclusions/inclusions" mechanism. Chris ________________________________________ Von: Ron Wheeler Gesendet: Montag, 4. Januar 2016 17:19 An: users@maven.apache.org Betreff: Re: How to manage dependency "includes"? You can simplify the problem that you are having by making a module that includes the correct version of the third party modules and having your modules depend on that with a "provided" scope. This also makes all of your jars and wars a lot smaller since only one copy of each API is included in the whole project rather than having the code appear in every one of your modules that needs it. This speeds your builds by a lot and save individual developers from having to think about the "correct" version of each library. They just include the aggregated libraries that they need. For example Apache Commons stuff would be supplied by your module com.example:myapachecommons:1.0-SNAPSHOT with scope provided. http://blog.artifact-software.com/tech/?tag=3Dmaven might be a useful set of articles. Ron On 04/01/2016 3:38 AM, Christofer Dutz wrote: > Hi, > > > I am currently cleaning up in the dependencies of a quite big set of big = projects. For this I am making a lot of use of dependency management. One t= hing I did come across quite a lot of times is this problem: > > > Some libs reference undesired libs, mostly API libs (in most cases they r= eference artifacts that contain parts of some API packages). To prevent the= m from being used, we exclude them in the dependencyManagement section. Now= the downside is that now the API packages are missing. In order to fix thi= s, we now have to manually add dependencies to the API modules wherever the= artifact is used. It would be cool, if there was not only an "exclusion" b= ut also an "inclusion" mechanism in dependencyManagement, so we could actua= lly manage situations like this. > > > Is there a better way of resolving this type of problem? Would adding a f= eature like the "inclusions" to Maven be a good idea? If not, what are the = problems with it? If yes, what can I do to help get it in (Would be glad to= contribute something like this)? > > > Chris > > > > -- Ron Wheeler President Artifact Software Inc email: rwheeler@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org