Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for pomFile parameter #98

Conversation

smaarn
Copy link
Contributor

@smaarn smaarn commented May 9, 2024

Issue

The value of mavenProject.getFile() may be referencing a file which has been altered (for example when using the flatten maven plugin) depending on when it's invoked.

The idea of this MR is to allow the explicit specification of the POM file to format (or check) by making it possible to pass a custom value to pomFile.

Would allow to fix #72 (by making it explicit about the pom and not the "potentially altered file")

@smaarn
Copy link
Contributor Author

smaarn commented May 11, 2024

It should be ok to review now.

The only question I had would be whether or not I should update the README accordingly also. 🤷

@slawekjaranowski
Copy link
Member

It should be ok to review now.

The only question I had would be whether or not I should update the README accordingly also. 🤷

Documentation on new parameter is enough, we not need update readme.

@slawekjaranowski slawekjaranowski self-assigned this May 11, 2024
@smaarn smaarn requested a review from slawekjaranowski May 11, 2024 16:02
@slawekjaranowski slawekjaranowski merged commit 35418a8 into mojohaus:master May 11, 2024
19 checks passed
@smaarn smaarn deleted the feat/add-possibility-to-target-explicitly-pom branch May 12, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to avoid checking maven-shade-plugin: dependency-reduced-pom.xml?
3 participants