Gerardo Villeda created AVRO-2484:
-------------------------------------

             Summary: Support for External Imports in compiled jars
                 Key: AVRO-2484
                 URL: https://issues.apache.org/jira/browse/AVRO-2484
             Project: Apache Avro
          Issue Type: Improvement
            Reporter: Gerardo Villeda


The maven-plugin provides the ability to import avro schemas and reference when 
developing complex objects and to promote reuse. 

I believe that it would be ideal to support importing schemas that have been 
compiled into shared libraries. For instance, in our organization we 
standardize a header for each event in a Kafka topic. We would ideally want to 
compile the required class, package with the associated schema fragment and 
import on many of our projects. 

I suppose this could be implemented using a convention like 
"classpath:/file.avsc" in the imports. This will also require changes to the 
compiler to include the imported class but skip the generation of code as one 
would assume the generated class is already available in the referenced jar 
file. 

NOTE: I tested this approach locally and seems to work. I'd be happy to submit 
a Pull Request if this aligns with the overall direction of this tool.

Thanks



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to