You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "gsmet (via GitHub)" <gi...@apache.org> on 2024/06/05 11:35:28 UTC
[I] Set `MAVEN_CMD_LINE_ARGS` env [maven-mvnd]
gsmet opened a new issue, #1008:
URL: https://github.com/apache/maven-mvnd/issues/1008
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 use `ProcessHandle.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()` and `System.getProperties()` to no avail.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Set `MAVEN_CMD_LINE_ARGS` env [maven-mvnd]
Posted by "gsmet (via GitHub)" <gi...@apache.org>.
gsmet closed issue #1008: Set `MAVEN_CMD_LINE_ARGS` env
URL: https://github.com/apache/maven-mvnd/issues/1008
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Set `MAVEN_CMD_LINE_ARGS` env [maven-mvnd]
Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet commented on issue #1008:
URL: https://github.com/apache/maven-mvnd/issues/1008#issuecomment-2149671036
Hey Guillaume, I'm not completely sure about this one.
I suppose it could be added back in the mvnd branch supporting Maven 3.x, but that environment variable has been removed in 4.x (see https://issues.apache.org/jira/browse/MNG-7192). You may want to raise a JIRA issue for 4.x explaining your use case so that a better solution can be found.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Set `MAVEN_CMD_LINE_ARGS` env [maven-mvnd]
Posted by "gsmet (via GitHub)" <gi...@apache.org>.
gsmet commented on issue #1008:
URL: https://github.com/apache/maven-mvnd/issues/1008#issuecomment-2155141104
Thanks for the answer. Let's close this one. I'll see if there are any other alternatives.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org