ascopes commented on issue #1080: URL: https://github.com/apache/maven-plugin-tools/issues/1080#issuecomment-4223698217
I spent some time the other day looking into this and it does seem to be possible. I'm not sure on the exact semantics for how this needs to work though but I did draft the core skeleton of this locally. @slawekjaranowski would this be something of interest for me to contribute, in your opinion? I'd be happy to allocate some time when I am not working to try and contribute this but want to be sure it would be of interest before blindly committing any time to it. The flow would look something like: 1. annotation processor uses javac APIs to process `@Mojo` annotations (+ `@Parameter`, `@Inject`, `@Component`, `@Execute`, etc). 2. annotation processor scrapes javadoc comments (and MD comments if on JDK23 or newer) for annotated elements. This uses the accessible sun APIs from the JDK. (Question of how this would work for Eclipse as I've had other issues with ECJ in the past unfortunately, but not sure that should be a total blocker for this). 3. annotation processor dumps JSON or XML files to `target/classes` or similar for each Mojo that it processes. 4. new generator in existing codebase scans for generated JSON/XML descriptors of each Mojo to present them back to the plugin descriptor. -- 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]
