New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quarkus Maven Plugin : can't use properties generated by maven build-helper #14788
Comments
/cc @quarkusio/devtools |
It is in fact present among the build properties but when we are creating a ConfigSource out of those we are filtering out everything that doesn't start with the |
@rmanibus can you add a complete stacktrace please? |
|
@aloubyansky but why is it able to expand ${git.branch} and >${project.version} then ? I confirm that replacing ${git.safebranch} by ${quarkus.git.safebranch} make the reproducer work as expected. |
The issue is that we try to expand the variable, but since it was not included in the source the expansion fails. What we can do is to also include any properties required for expansion. |
That makes sense @radcortez @rmanibus because the git-commit-id-plugin also sets those properties as system properties by default. If you change your config to
it will fail in the same way as the git.safebranch. |
Great. I'll have a look into this later. |
this make sense, thanks ! |
Describe the bug
quarkus configuration property containing values generated by maven build-helper regex-property make the quarkus maven plugin fail.
I'm able to display the content of those configuration properties with antrun plugin.
Expected behavior
(Describe the expected behavior clearly and concisely.)
Actual behavior
To Reproduce
here is a reproducer
https://github.com/rmanibus/quarkus_14788
Steps to reproduce the behavior:
just run mvn install
Environment (please complete the following information):
uname -a
orver
: ubuntu 20.10java -version
: tested on jdk 8 & 15The text was updated successfully, but these errors were encountered: