HarshMehta112 commented on code in PR #197:
URL:
https://github.com/apache/maven-artifact-plugin/pull/197#discussion_r3316982370
##########
src/main/java/org/apache/maven/plugins/artifact/buildinfo/DescribeBuildOutputMojo.java:
##########
@@ -74,12 +74,27 @@ public void execute() throws MojoExecutionException {
diagnose(outputTimestamp, getLog(), project, session, effective);
getLog().info("");
+ describeBuildEnvironment();
+ getLog().info("");
describeBuildOutput();
}
private Path rootPath;
private BuildInfoWriter bi;
+ private void describeBuildEnvironment() {
+ getLog().info("Build environment information");
+ getLog().info(" java.version=" + System.getProperty("java.version"));
+ getLog().info(" java.vendor=" + System.getProperty("java.vendor"));
+ getLog().info(" java.home=" + System.getProperty("java.home"));
+ getLog().info(" os.name=" + System.getProperty("os.name"));
+ getLog().info(" os.version=" + System.getProperty("os.version"));
+ getLog().info(" os.arch=" + System.getProperty("os.arch"));
+ getLog().info(" mvn.version=" + rtInformation.getMavenVersion());
Review Comment:
@slawekjaranowski @hboutemy Sorry for late reply.
I updated the PR here are the resulted output :
<img width="839" height="265" alt="Screenshot 2026-05-28 at 3 34 59 PM"
src="https://github.com/user-attachments/assets/a8a3a0b8-d20a-426f-a965-904cb9d94070"
/>
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]