Return-Path: X-Original-To: apmail-ant-ivy-user-archive@www.apache.org Delivered-To: apmail-ant-ivy-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 622907EC4 for ; Fri, 2 Sep 2011 17:04:39 +0000 (UTC) Received: (qmail 47126 invoked by uid 500); 2 Sep 2011 17:04:39 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 47044 invoked by uid 500); 2 Sep 2011 17:04:37 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 47036 invoked by uid 99); 2 Sep 2011 17:04:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 17:04:37 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [130.83.156.232] (HELO lnx503.hrz.tu-darmstadt.de) (130.83.156.232) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 17:04:28 +0000 Received: from mailserver3.hrz.tu-darmstadt.de (lnx504.hrz.tu-darmstadt.de [130.83.156.233]) by lnx503.hrz.tu-darmstadt.de (8.14.4/8.14.4/HRZ/PMX) with ESMTP id p82H46OZ002914 for ; Fri, 2 Sep 2011 19:04:06 +0200 (envelope-from bruch@st.informatik.tu-darmstadt.de) Received: from [84.58.147.202] (helo=[192.168.2.100]) by mailserver3.hrz.tu-darmstadt.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1QzX9y-0006jd-Bo for ivy-user@ant.apache.org; Fri, 02 Sep 2011 19:04:06 +0200 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Advice for managing large-scale OSGI repository for data analysis From: Marcel Bruch In-Reply-To: <826E73BC-E54A-4917-B330-87CA0001A3B9@st.informatik.tu-darmstadt.de> Date: Fri, 2 Sep 2011 19:04:05 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7A31BE8D-F851-4984-AD5D-FC47AD9244BA@st.informatik.tu-darmstadt.de> <5E154D40-BED8-45D5-82FD-964AB2148D8E@hibnet.org> <826E73BC-E54A-4917-B330-87CA0001A3B9@st.informatik.tu-darmstadt.de> To: ivy-user@ant.apache.org X-Mailer: Apple Mail (2.1084) X-PMX-TU: seen v1.2 by 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.9.2.165414 X-PMX-RELAY: outgoing Hi Nicolas, two minor fixes: = org.apache.ivy.osgi.p2.P2MetadataParser.UnitHandler.handleAttributes(Attri= butes): boolean singleton =3D Boolean.getBoolean(atts.getValue(SINGLETON));=20 --> changed to=20 boolean singleton =3D Boolean.parseBoolean(atts.getValue(SINGLETON)); Despite that this information is not used, calling Boolean.getBoolean = seems to be wrong. in org.apache.ivy.osgi.updatesite.UpdateSiteResolver.init() loader.load(u); --> changed to: RepoDescriptor repoDescriptor =3D loader.load(u); setRepoDescriptor(repoDescriptor); otherwise, repoDescriptor gets never initialized. However, I couldn't make downloading and installing work due to other = problems. I tried to follow your advice to iterate over all = organisations and from there over all modules. This is the resulting = code: String resolverName =3D url.toExternalForm(); UpdateSiteResolver resolver =3D new UpdateSiteResolver(); resolver.setName(resolverName); resolver.setUrl(url.toExternalForm()); for (final OrganisationEntry organisation : = resolver.listOrganisations()) { for (final ModuleEntry entry : resolver.listModules(organisation)) { System.out.println(entry); } } resolver.listOganizations returns an empty list (which is not that = amazing since there is no organization attribute). thus, I tried to use the RepoDescriptor directly : RepoDescriptor repo =3D opt.get(); for (final ModuleDescriptor module : (Set) repo.getModules()) { ModuleRevisionId moduleRevisionId =3D module.getModuleRevisionId(); ivy.install(moduleRevisionId, resolverName, "local-disk", new = InstallOptions() setTransitive(true).setValidate(true).setOverwrite(true)); } } This approach fails because Ivy cannot download the Artifacts because = there is no URL associated with the artifact. Any ideas? Thanks, Marcel