This is an example of how to invoke AsyncAPI generator during a maven build, in three steps:
- Use
download-maven-pluginto 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-pluginto invoke the AsyncAPI generator with the specified arguments - Use
build-helper-maven-pluginto signal maven to also include the newly-generated sources as source folders.