avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mick <michal.one1...@gmail.com>
Subject Unable to generate-sources with IDL and JSON
Date Tue, 29 Oct 2013 13:38:06 GMT
I use maven plugin with avro to generate classes out of IDL files for 
protocol. But for schemas avro suport only JSON as I recon so I decided 
to go for avsc. I use import in protocol AVDL file to import AVSC file.

However when in pom.xml I add 'schema' or 'protocol' goals next to 
'idl-protocol' so it looks like this:

//When i comment out two below lines and use only AVDL all works fine 
but when i try tu use avsc i got error
//This goal only with only AVDL works fine

I got an error:
[ERROR] Failed to execute goal 
org.apache.avro:avro-maven-plugin:1.7.5:schema (schemas) on project 
Network: Execution schemas of goal 
org.apache.avro:avro-maven-plugin:1.7.5:schema failed: 
org.codehaus.jackson.JsonParseException: Unexpected character ('@' (code 
64)): expected a valid value (number, String, array, object, 'true', 
'false' or 'null')
[ERROR] at [Source: 
line: 4, column: 2]
[ERROR] -> [Help 1]
Line 4 column 2 is where i got in my avdl file:

What is wrong, is it a bug ?

View raw message