[YANGTOOLS-1491] Add file-backed YangToSourcesState storage Created: 28/Feb/23  Updated: 02/Mar/23  Resolved: 02/Mar/23

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

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

Issue Links:
Blocks
is blocked by YANGTOOLS-745 Enable execution M2E in incremental b... Resolved
Epic Link: Incremental Maven Build

 Description   

YANGTOOLS-745 deals with direct integration with BuildContext. This unfortunately does not work with plain maven, as DefaultBuildContext does not store anything and we are therefore with no state at all.

Add a separate implementation activated when we determine BuildContext does nothing and stores/restores the execution state from a single project.build.directory file. The file should follow Maven layout, i.e. should be something in target/maven-status/yang-maven-plugin/.

Using this storage we should be able to forgo generation of files across multiple maven invocations.


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