[ 
https://issues.apache.org/jira/browse/AVRO-2201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16806129#comment-16806129
 ] 

Zoltan Farkas commented on AVRO-2201:
-------------------------------------

Another way to achieve a similar result is to publish the generated avsc (and 
idl) along with the java classes. Once you do that you can import them easily 
through te existing methods...

I have some examples here: [https://github.com/zolyfarkas/avro-schema-examples] 

not generating duplicate classes is being done by the plugin itself...

 

> avro-maven-plugin should be able to import schema from generated 
> specificrecord
> -------------------------------------------------------------------------------
>
>                 Key: AVRO-2201
>                 URL: https://issues.apache.org/jira/browse/AVRO-2201
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: mateusz kanarek
>            Priority: Major
>
> Currently SchemaMojo can read avro schemas only from avsc files.
> One can define avro schema and using current SchemaMojo build a jar with 
> generated SpecificRecord(s).
> But there is no easy way to reference this schema from avsc schema in another 
> maven project.
> It would be great if avsc files could reference to avro schema from already 
> generated SpecificRecord.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to