`mavenBuild`: Set `-X` flag when `verbose: true`
Hi everyone,
In my project, I'm using the mavenBuild step. However, recently something went wrong in the pipeline, and maven was giving me an error log. Being maven, it doesn't give the full error logs by default, but offers a -X switch to do so (see also https://books.sonatype.com/mvnref-book/reference/running-sect-options.html#:~:text=6.1.9.%C2%A0Controlling%20Maven%E2%80%99s%20Verbosity).
However, it seems like piper doesn't allow to pass arbitrary flags to maven in mavenBuild. I guess there are valid reasons to do so, but in this case it might be a good idea to tie the verbosity of maven to the existing verbosity setting within piper. If verbose is true, the -X flag should be appended to the maven configuration here: https://github.com/SAP/jenkins-library/blob/master/cmd/mavenBuild.go#L42
Please let me know if there is another way through which I can set the -X flag. Unfortunately, I can't seem to reproduce the particular issue with my maven configuration locally, so I'm hoping for your input here.
Kind regards Lukas
Thank you for your contribution! This issue is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team to your comment.
Hi @SAP/jenkins-library-team, can someone have a look at this?
Thank you for your contribution! This issue is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team to your comment.
I still think this is relevant
Thank you for your contribution! This issue is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team to your comment.
I still think this is relevant