Skip to content

Upgrade to Maven 4.0.0-rc-1 - #1189

Merged
gnodet merged 6 commits into
apache:masterfrom
gnodet:beta-6
Nov 26, 2024
Merged

gnodet merged 6 commits into
apache:masterfrom
gnodet:beta-6

Conversation

@gnodet

@gnodet gnodet commented Nov 7, 2024 •

Copy link
Copy Markdown
Contributor

This PR updates mvnd to Maven 4.0.0-rc-1

@cstamas

cstamas commented Nov 13, 2024 •

Copy link
Copy Markdown
Member

All fine, manually tested as well, but one problem (and related IT) fails: raw streams

RawStreamsTest.version:55 Output should contain PrintOut{payload='Hello'} ==> expected: <true> but was: <false>

OTOH, the Hello string is in daemon output log.

IMO this is a problem in maven and not mvnd.

@cstamas

cstamas commented Nov 22, 2024

Copy link
Copy Markdown
Member

All looks good, tested locally.

Comment thread .mvn/maven.config Resolved
@gnodet

gnodet commented Nov 22, 2024

Copy link
Copy Markdown
Contributor Author

Fixes #1203 and #1204.

terminal -> doConfigureWithTerminal(context, terminal));
context.terminal = MessageUtils.getTerminal();
context.closeables.add(MessageUtils::systemUninstall);
MessageUtils.registerShutdownHook();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should remove this from here, and install it only once in LookupInvoker maybe?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Maven 3 did not create a Terminal, so this was needed. But now it should go away.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd leave all this as is, as shutdown hook is also removed on uninstall, hence IMO we are ok. Also, mvnd creates "exec" terminal while mvn not.

We can further simplify later.

@cstamas cstamas mentioned this pull request Nov 22, 2024
@gnodet
gnodet force-pushed the beta-6 branch 2 times, most recently from f7a0bed to 62ab9a8 Compare November 25, 2024 09:43
@gnodet gnodet changed the title Upgrade to beta-6 Upgrade to Maven 4.0.0-rc-1 Nov 26, 2024
@gnodet
gnodet merged commit 083a28b into apache:master Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants