MS3Inc / camel-archetypes

Apache License 2.0
4 stars 1 forks source link

Archetype should fail the build if the plugin fails #6

Closed rlratcliffe closed 3 years ago

rlratcliffe commented 3 years ago

In a situation where the plugin fails to succeed, such as in the case of an API not existing, the plugin will first show

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.168 s
[INFO] Finished at: 2021-02-04T16:22:42-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.ms3-inc.tavros:camel-restdsl-openapi-plugin:0.1.4:generate (default-cli) on project test-internal: Execution default-cli of goal com.ms3-inc.tavros:camel-restdsl-openapi-plugin:0.1.4:generate failed: Cannot invoke "io.swagger.v3.oas.models.OpenAPI.getPaths()" because "openAPI" is null -> [Help 1]

but then the archetype itself will still show

[INFO] BUILD SUCCESS