-
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
Set MAVEN_CMD_LINE_ARGS
env
#1008
Comments
See apache/maven-mvnd#1008 for more info.
See apache/maven-mvnd#1008 for more info.
Hey Guillaume, I'm not completely sure about this one. |
Thanks for the answer. Let's close this one. I'll see if there are any other alternatives. |
First, thanks for this amazing project, it makes my Quarkus builds a lot faster.
When using vanilla Maven,
MAVEN_CMD_LINE_ARGS
is set to whatever the Maven command line is.This allows you to inspect the Maven command line in extensions (for instance a Develocity extension).
Unfortunately,
mvnd
doesn't set this environment variable and I couldn't find an easy (and reliable) way to get the command line in a way that wouldn't get cluttered with a lot of non relevant arguments (i.e. I don't want to useProcessHandle.current().info().commandLine()
).Would it be possible to mimic the Maven behavior (ideally) or expose it in some easily consumable way?
For a use case, see https://github.com/quarkusio/quarkus-project-develocity-extension/blob/fa6fa13df7b56c31d6ba71b2b60017a5d827c8fb/src/main/java/io/quarkus/develocity/project/QuarkusProjectDevelocityConfigurationListener.java#L96 .
Note that I might have missed something obvious but I inspected
System.getenv()
andSystem.getProperties()
to no avail.The text was updated successfully, but these errors were encountered: