-
Notifications
You must be signed in to change notification settings - Fork 213
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
mvnd native executable is not passing -Dkey=val to the daemon #157
Comments
Thanks for the report, @thiagolocatell. I guess we need to set the properties in the Daemon JVM programmatically when starting a build. |
Debugging a bit, it turns out that |
Ah, I was suspecting something that. I think I've been hit by that already but had no time to investigate yet. |
just wrote this simple example,
execution:
|
Yeah, @thiagolocatelli this is how stock |
@ppalaga understood. Should the parameters then somehow be parsed in the client to identify which ones are system properties format ( |
It is not easy. We have to figure out. |
|
I hope that works since I see you are already parsing the parameters on https://github.com/mvndaemon/mvnd/blob/6e461885863e745881ab2ceeabc50c83aa46f30f/client/src/main/java/org/jboss/fuse/mvnd/client/DefaultClient.java#L111. |
Thank you for the fix @ppalaga , once the new build is available on sdkman I will pull it and test it here. |
You can also test with the zip attached to the build of the PR https://github.com/mvndaemon/mvnd/pull/159/checks - it is under Artifacts in the top right corner |
Thanks for the report, this is a very good catch! |
ok, I ran using the shell script
it worked but I guess the shell script is calling java directly and not using the native binary, which I can not run at the time. |
@ppalaga I was able to run the native binary and it worked. Maven build successful and docker images created. thank you for your fix. |
I do have the following configuration for my
docker-maven-plugin
in the parentpom.xml
for my multi module project:each of my modules import this configuration using the following directive:
With the command
mvn clean package -DskipTests -P docker -Ddocker.user=thiagolocatelli
project builds successfully and my docker images are created, however when I use the commandmvnd clean package -DskipTests -P docker -Ddocker.user=thiagolocatelli
the project fail with the following error messages:Not sure this is a bug related to
mvnd
but it is only happening withmvnd
on my local environment. The same error happen with other projects as well.The text was updated successfully, but these errors were encountered: