Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 34990 invoked from network); 27 Jul 2010 19:32:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Jul 2010 19:32:00 -0000 Received: (qmail 35585 invoked by uid 500); 27 Jul 2010 19:32:00 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 35511 invoked by uid 500); 27 Jul 2010 19:31:59 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 35376 invoked by uid 99); 27 Jul 2010 19:31:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jul 2010 19:31:59 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kenokles@gmail.com designates 209.85.161.44 as permitted sender) Received: from [209.85.161.44] (HELO mail-fx0-f44.google.com) (209.85.161.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jul 2010 19:31:52 +0000 Received: by fxm1 with SMTP id 1so956050fxm.17 for ; Tue, 27 Jul 2010 12:31:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=5XIjJU8LhplQnG5Q31dKmmLuMMqxGGbbRMZPOL58b04=; b=U4MJpeQKF+yBYj2pjBOWA9aHdbvhxpfgd1xZXVL4xSnKy9Mdf80dMXunRnx0QObJlf HS28JnkOeUyhUKTKYykL5JK5ivUrWrFkOFz/1dgjsAx3NjNkfwXNypJhb05brKF2YddH MMn0Zp84ktHGDwRQZRW2P9kgDotGh4SmIrrPg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=j56v0xw8hKOcI6EMgA5+fH/Kuw2FKVaZ5Z54JJv/FPMq14IOKdoxblXz09SC2bg5mO GvukmHgdWfxlspfVtCmElN3NwCnHQ5AfjdIdW2Znau9NEzQXsbIbFJnKJa3VyB3FoLfu vY3LVmWmqa/O+XqPIWpljmi7IzVIN/RPc884Q= Received: by 10.239.166.205 with SMTP id c13mr649249hbe.108.1280259092241; Tue, 27 Jul 2010 12:31:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.172.78 with HTTP; Tue, 27 Jul 2010 12:31:12 -0700 (PDT) From: Johan Venant Date: Tue, 27 Jul 2010 21:31:12 +0200 Message-ID: Subject: how to set ivysettings.xml location using buildr extension To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=001485f78ae869df92048c638c9b X-Virus-Checked: Checked by ClamAV on apache.org --001485f78ae869df92048c638c9b Content-Type: text/plain; charset=ISO-8859-1 Hi everybody, I'm trying to start a personal project using some "alternative" java tools. My dream team is composed of [ivy, buildr, jetty, jersey, freemarker, guice2, google apps api]. I'm facing some huge difficulties trying to manage my ivy repositories from buildr. Especially with ivysettings.xml Basically, it seems that the buidr ivy extension try to get the ivysettings.xml from the ant-scripts project subfolder. This is not a problem for me because I need my own settings to add java.netand google maven repositories. So I put my own ivysettings in ant-scripts And it worked like a charme... At least to compile the project. I use also the jetty buildr plugin to manage jetty server. This plugin use Java.classpath to know which libraries to load on startup. This variable is not set by ivy extension so I have to do it myself. I assume that I will have to use the ivy filter or deps methods to retrieve the compile classpath and to inject it in the Java.classpath. Thus, jetty should by launch with a valid classpath. My main problem is that if the compile action use the good ivysettings located in ant-scripts, the ivy extension methods seems to use the default one located in the ivy jar file. And I didn't find any way to change this behavior. This is the kind of output I have using a ivy.deps inside my project : :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ :: [ivy_cachepath] :: loading settings :: url = jar:file:/var/lib/gems/1.9.1/gems/ivy4r-jars-1.1.0/lib/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivysettings.xml [ivy_cachepath] :: resolving dependencies :: org.apache#hello-ivy;working@keno-desktop [ivy_cachepath] confs: [compile] [ivy_cachepath] found javax.servlet#servlet-api;2.5 in public ... Finishing by an unresolved dependencies errors on libraries from java.netand google repositories And this is the output without the deps (only compiling, no jetty stuff) :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ :: [ivy_resolve] :: loading settings :: file = /home/keno/workspace/gbill/ant-scripts/ivysettings.xml [ivy_resolve] :: resolving dependencies :: org.apache#hello-ivy;working@keno-desktop [ivy_resolve] confs: [compile] [ivy_resolve] found javax.servlet#servlet-api;2.5 in maven ... This works very well I'm a beginner on all those technologies. So any help is welcome. Thank you very much, Keno. PS : I also didn't find a clean way to overload the jetty version used by the buildr plugin. The only way I found is by change the VERSION constant directly inside the plugin sources. -- KenoKles --001485f78ae869df92048c638c9b--