Skip to content

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Oct 10, 2025

As they seem problematic.

As they seem problematic.
@cstamas cstamas requested a review from gnodet October 10, 2025 12:01
cwd,
userHome,
List.of("eu.maveniverse.maven.plugins:toolbox:0.7.4:help"),
List.of("eu.maveniverse.maven.plugins:toolbox:0.13.7:help"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to have the version externalised in the POM so that it can be upgraded more easily ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, these changes are not needed, are not mandatory. But I did this merely "to align" all toolbox versions used in Maven build, to not waste time on pulling various different versions of it over and over again.

Will see if we can somehow centralize the config/GAV for it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, these changes are not needed, are not mandatory. But I did this merely "to align" all toolbox versions used in Maven build, to not waste time on pulling various different versions of it over and over again.

Yes, and my remark goes into the exact same direction ;-). IF we can align things and have a single place of configuration, that would be even better!

Files.createDirectories(userHome);
MimirInfuser.infuseUW(userHome);

System.out.println("=== " + testInfo.getTestMethod().orElseThrow().getName());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to remove those System.out.println before merging...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or use proper logging...

Copy link
Member Author

@cstamas cstamas Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While in general I completely agree about this stance, in this very case I'd leave them; their reason of existence is really to easy our work of "figuring out what happens". As all these tests are testing "execution of maven to provide us some information" (with all the play of force stdout plus quiet mode). As long as we cannot "configure output to terminal and file differently", I think it is simplest and "cheapest" to leave them. The reason I did not want logger in test CP, is to keep CP classpath "as pristine as possible", as we have SLF4J logging already present JVM, in the "embedded Maven".

So this is my 5 cents, I can remove all this if you insist, but again, the point is to have them in surefire grabbed stdout for easier debugging, thats all. I'd not remove them, nor would use "fully fledged logging framework" either, but without them we are left in dark (as maven cannot write to stdout one thing, while logging another to file).

@cstamas cstamas marked this pull request as ready for review October 13, 2025 14:05
As it is create twice: once in unforked JVM by Junit via
TestSuiteOrdering and once in forked JVM, but the
system property is set only in latter.

So use default, as class orderer does not use anything
related to toolbox.
@cstamas cstamas requested a review from gnodet October 13, 2025 18:09
@cstamas cstamas self-assigned this Oct 13, 2025
@cstamas cstamas added the enhancement New feature or request label Oct 13, 2025
@cstamas cstamas added this to the 4.1.0 milestone Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-4.0.x enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants