Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 72604 invoked from network); 24 May 2010 21:51:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 May 2010 21:51:58 -0000 Received: (qmail 18064 invoked by uid 500); 24 May 2010 21:51:58 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 18049 invoked by uid 500); 24 May 2010 21:51:58 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 18041 invoked by uid 99); 24 May 2010 21:51:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 21:51:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.225.164.29] (HELO EXHUB020-2.exch020.serverdata.net) (206.225.164.29) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 21:51:53 +0000 Received: from [172.16.20.101] (66.152.196.60) by smtpx20.serverdata.net (206.225.164.34) with Microsoft SMTP Server (TLS) id 8.2.234.1; Mon, 24 May 2010 14:51:31 -0700 Message-ID: <4BFAF4E3.7020103@akiban.com> Date: Mon, 24 May 2010 17:51:31 -0400 From: Jack Orenstein User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: "zookeeper-user@hadoop.apache.org" Subject: Re: Zookeeper, Maven and dependencies on javax jar files References: <4BFAE32B.9040607@akiban.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Ted Dunning wrote: > Which version of maven do you have? 2.2.1. > > I have heard some versions don't follow redirects well. You can try > deleting these defective files in your local repository under .m2 and try > again. You may need to try with a newer maven to get things right. I tried deleting them manually before trying various other repositories, (including the one mentioned in the "jar" file). > > Another option is to explicitly remove those dependencies since they are > optional anyway. This sort of trick is commonly necessary with log4j. Try > something like this (suitably adjusted, of course): > > > log4j > log4j > 1.2.15 > > > com.sun.jmx > jmxri > > > com.sun.jdmk > jmxtools > > > javax.jms > jms > > > javax.mail > mail > > > This at least gets me through the build/install phase. My usage of zookeeper is pretty minimal right now -- just one a single node. What features of zookeeper depend on the excluded jar files? Thanks very much for your quick response. Jack > > > > > See here for possible related issue: > http://jira.codehaus.org/browse/MREPOSITORY-20?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab > > On Mon, May 24, 2010 at 1:35 PM, Jack Orenstein wrote: > >> I'm working on a project in the maven framework and have added a dependency >> on zookeeper. When I try to install: >> >> mvn clean install -Dmaven.test.skip=true >> ... >> [INFO] Compilation failure >> >> error: error reading >> /home/jao/.m2/repository/javax/jms/jms/1.1/jms-1.1.jar; error in opening zip >> file >> error: error reading >> /home/jao/.m2/repository/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar; >> error in opening zip file >> error: error reading >> /home/jao/.m2/repository/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar; error in >> opening zip file >> >> The named jar files contain some HTML (!), e.g. >> >> >> >> 301 Moved Permanently >> >>

Moved Permanently

>>

The document has moved here.

>>
>>
Apache Server at maven-repository.dev.java.net Port >> 443
>> >> >> Has anyone succeeded in following this advice and getting it to work? >> >> I found this maven page: >> http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html, but >> just getting the jar files from Oracle is a pain. >> >> Any advice on how to get zookeeper and maven to coexist would be welcome. >> Thanks. >> >> Jack >>