Skip to content

fix(maven): fix set the pom file without changing base directory#34182

Merged
jaysoo merged 4 commits intonrwl:masterfrom
altaiezior:issue-34181
Feb 26, 2026
Merged

fix(maven): fix set the pom file without changing base directory#34182
jaysoo merged 4 commits intonrwl:masterfrom
altaiezior:issue-34181

Conversation

@altaiezior
Copy link
Copy Markdown
Contributor

@altaiezior altaiezior commented Jan 21, 2026

Current Behavior

nx-maven-plugin 0.0.12 is also changing the base directory along with the pom file when the plugins like flatten-maven-plugin / maven-shade-plugin produces pomFile in different directory other than the base directory

Expected Behavior

plugin should only update the pom file and not the base directory location

Related Issue(s)

Fixes #34181

mojohaus/flatten-maven-plugin#50

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
nx-dev Ready Ready Preview Jan 25, 2026 11:02am

Request Review

@netlify
Copy link
Copy Markdown

netlify bot commented Jan 21, 2026

Deploy Preview for nx-docs canceled.

Name Link
🔨 Latest commit 4f7c232
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69713f6fa4d740000818ca32

@altaiezior
Copy link
Copy Markdown
Contributor Author

@FrozenPandaz would request your review on this one as a fix to the current nx-maven-plugin

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 8, 2026

Deploy Preview for nx-dev canceled.

Name Link
🔨 Latest commit 354be51
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/6988526291c3f0000828907c

@altaiezior
Copy link
Copy Markdown
Contributor Author

@lourw @FrozenPandaz this is a simple change, can we plan for its release in the next release?

jaysoo

This comment was marked as outdated.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud bot commented Feb 26, 2026

View your CI Pipeline Execution ↗ for commit 3f6e40e

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 13m 23s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3m 59s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 9s View ↗
nx-cloud record -- nx format:check ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-26 16:03:13 UTC

@jaysoo jaysoo merged commit dcfc213 into nrwl:master Feb 26, 2026
23 checks passed
FrozenPandaz pushed a commit that referenced this pull request Feb 26, 2026
)

## Current Behavior
nx-maven-plugin 0.0.12 is also changing the base directory along with
the pom file when the plugins like flatten-maven-plugin /
maven-shade-plugin produces pomFile in different directory other than
the base directory

## Expected Behavior
plugin should only update the pom file and not the base directory
location

## Related Issue(s)

Fixes #34181

mojohaus/flatten-maven-plugin#50

Co-authored-by: anurag.ag <[email protected]>
(cherry picked from commit dcfc213)
FrozenPandaz pushed a commit that referenced this pull request Feb 26, 2026
)

## Current Behavior
nx-maven-plugin 0.0.12 is also changing the base directory along with
the pom file when the plugins like flatten-maven-plugin /
maven-shade-plugin produces pomFile in different directory other than
the base directory

## Expected Behavior
plugin should only update the pom file and not the base directory
location

## Related Issue(s)

Fixes #34181

mojohaus/flatten-maven-plugin#50

Co-authored-by: anurag.ag <[email protected]>
(cherry picked from commit dcfc213)
@altaiezior altaiezior deleted the issue-34181 branch March 1, 2026 23:33
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 7, 2026

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nx-Maven-Plugin should use setPomFile for correct resolution of flatten-maven-plugin

3 participants