gnodet commented on issue #8933: URL: https://github.com/apache/maven/issues/8933#issuecomment-5452732353
This is already addressed in Maven 4. The v4 API module generates all plugin descriptor beans, readers, and writers automatically from the Modello model: - **Beans** (`PluginDescriptor`, `MojoDescriptor`, `Parameter`, `Dependency`, etc.) are generated from `api/maven-api-plugin/src/main/mdo/plugin.mdo` via Modello + `model.vm` into `org.apache.maven.api.plugin.descriptor` - **Reader / Writer** (`PluginDescriptorStaxReader`, `PluginDescriptorStaxWriter`) are generated from the same model via `reader-stax.vm` / `writer-stax.vm` in `impl/maven-support` - The old hand-written compat classes in `compat/maven-plugin-api` are retained for backward compatibility but delegate to the generated v4 beans internally The original concern — maintenance burden and risk of model/class desync — is fully eliminated. Closing as fixed. See also: PR #862 (superseded, now closed). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
