The maven repositories required are in the pom.xml of the avro project.  If
you are using Netty for a socket protocol, you will need the JBoss
repository.

Otherwise, you can exclude that dependency in the pom.

see the repositories section at the bottom of the Avro pom section here:

http://svn.apache.org/viewvc/avro/tags/release-1.5.3/lang/java/pom.xml?view=
markup


On 9/2/11 3:48 PM, "W.P. McNeill" <[email protected]> wrote:

> Also, could someone who has built an Avro client using Maven post a list of
> all the Maven repositories that contain the needed dependencies. It seems like
> the default repository is not enough.
> 
> On Fri, Sep 2, 2011 at 2:41 PM, W.P. McNeill <[email protected]> wrote:
>> I'm new to Avro. Since I'm having trouble finding simple examples online I'm
>> writing one of my own that I'm putting on github.
>> 
>> https://github.com/wpm/AvroExample
>> 
>> Hopefully, this will be of help to people like me who are also having trouble
>> finding simple code examples.
>> 
>> I want to get this compiling without of hitch in Maven. I had it running with
>> a 1.4 version of Avro, but when I changed that to 1.5, some of the code no
>> longer works. Specifically, BinaryEncoder can no longer be instantiated
>> directly because it is now an abstract class (AvroExample.java: line 33) and
>> DecoderFactory.defaultFactory is deprecated (AvroExample.java: line 41).
>> 
>> How should I modify this code so that it works with the latest and greatest
>> version of Avro?  I looked through the Release Notes, but the answers weren't
>> obvious.
>> 
>> Thanks.
>> 
> 


Reply via email to