-
New Feature
-
Resolution: Done
-
Medium
-
None
-
None
The architecture of current yang-maven-plugin-spi relies on Maven, which has rather bad consequences in that plugins are expected to arrive at the information they need using their own facilities.
This leads to:
- java-api-generator finding src/main/java location through MavenProject
- generators mucking directly with BuildContext
Define an API which will provide intermediate object model for files to be generated. This way the codegen plugins can express what they need to generate and yang-maven-plugin takes care of interacting with BuildContext and MavenProject.