This is an example of how to invoke AsyncAPI generator during a maven build, in three steps:
- Use
download-maven-plugin
to download the required files. A bit hacky, but required if you need authentication to access it... The downside is that you can't split your definition in multiple files, or you'll have to download them all. Feedback is welcome. - Use
exec-maven-plugin
to invoke the AsyncAPI generator with the specified arguments - Use
build-helper-maven-plugin
to signal maven to also include the newly-generated sources as source folders.