[YANGTOOLS-1146] Define maven-independent CodeGenerator API Created: 19/Oct/20  Updated: 20/Oct/20  Resolved: 20/Oct/20

Status: Resolved
Project: yangtools
Component/s: maven plugin
Affects Version/s: None
Fix Version/s: 6.0.1

Type: New Feature Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Fix Maven Codegen API

 Description   

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.


Generated at Wed Feb 07 20:55:19 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.