Skip to content

Align mvnd m39 with Maven 3.9.x re config interpolation - #933

Merged
cstamas merged 1 commit into
apache:masterfrom
cstamas:issue-910
Apr 19, 2024
Merged

cstamas merged 1 commit into
apache:masterfrom
cstamas:issue-910

Conversation

@cstamas

@cstamas cstamas commented Apr 18, 2024 •

Copy link
Copy Markdown
Member

Port Maven 3.9.6 config and new properties (session.root/top) interpolation into Daemon m39.

The IT got this property as it triggers exception (failure) if mvn39 could not "discover" top directory.

Fixes #910

Port Maven 3.9.7 config and new properties (session.root/top)
into Daemon m39.

The IT got this property as it triggers exception (failure)
if mvn39 could not "discover" top directory.

Fixes apache#910
@cstamas
cstamas requested review from gnodet and ppalaga April 18, 2024 11:22
@cstamas cstamas self-assigned this Apr 18, 2024
@cstamas

cstamas commented Apr 18, 2024

Copy link
Copy Markdown
Member Author

@wendigo ping

@cstamas
cstamas merged commit 1fc7a98 into apache:master Apr 19, 2024
@cstamas
cstamas deleted the issue-910 branch April 19, 2024 14:25
@cstamas

cstamas commented Apr 20, 2024

Copy link
Copy Markdown
Member Author

@wendigo Would be grateful if you build mvnd locally and try it with Trino build, it should now work OOTB. No need for native and all that, just mvn clean install and use it on Trino build. Thanks!

@wendigo

wendigo commented Apr 20, 2024

Copy link
Copy Markdown

Will do @cstamas

@wendigo

wendigo commented Apr 20, 2024

Copy link
Copy Markdown

@cstamas unfortunately still doesn't work for our case. I've tried reapplying: trinodb/trino@ff1cddb and that works in mvn but not in mvnd

@wendigo

wendigo commented Apr 20, 2024

Copy link
Copy Markdown

Adding -Dmodernizer.violationsFile=${session.rootDirectory}/.mvn/modernizer/violations.xml to the .mvn/maven.config ends with the exception:

[ERROR] Failed to execute goal org.gaul:modernizer-maven-plugin:2.7.0:modernizer (modernizer) on project trino-root: Error opening violation file: ${session.rootDirectory}/.mvn/modernizer/violations.xml: ${session.rootDirectory}/.mvn/modernizer/violations.xml (No such file or directory) -> [Help 1]

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.

maven.config ${session.rootDirectory} interpolation is not working

3 participants