Skip to content

Fix #100 Set project.originalModel after flattening#281

Merged
slawekjaranowski merged 1 commit into
mojohaus:masterfrom
clayreimann:maven-shade-compat
Aug 15, 2022
Merged

Fix #100 Set project.originalModel after flattening#281
slawekjaranowski merged 1 commit into
mojohaus:masterfrom
clayreimann:maven-shade-compat

Conversation

@clayreimann

Copy link
Copy Markdown
Contributor

Based on the discussion in apache/maven-shade-plugin#129 (comment) It seems that the flatten plugin should update the originalModel property after we flatten the pom.

This issue resolves #100 and is an alternate way to close #279

@wangliang181230 wangliang181230 mentioned this pull request Jun 1, 2022
@clayreimann

Copy link
Copy Markdown
Contributor Author

@slachiewicz I know you may be busy, but do you have initial thoughts on this PR?

@clayreimann

Copy link
Copy Markdown
Contributor Author

@slachiewicz any update on this?

@clayreimann

Copy link
Copy Markdown
Contributor Author

@slachiewicz more ping. If you're busy, or not much involved any more, can you recommend someone else who might review?

@slawekjaranowski

Copy link
Copy Markdown
Member

Please squash to one final commit

Comment thread README.md Outdated

- When developing new integration test cases an easy way to only run the scenario you are working on is to create a new
directory (e.g. `src/it/new-case`) and put your new `pom.xml` and `verify.groovy` in that directory. Then update the
`<projectsDirectory>` path of the `run-its` profile to point to the directory containing your single test case.

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 can use: invoker.test property

mvn verify -P run-its -Dinvoker.test=<projectsDirectory>

Comment thread pom.xml Outdated
Comment thread src/it/projects/flatten-shaded-drp/invoker.properties
Comment thread src/it/projects/flatten-shaded-drp/pom.xml
Based on the discussion in maven-shade-plugin#129 apache/maven-shade-plugin#129 (comment) It seems that the flatten plugin should update the `originalModel` property after we flatten the pom.
@slawekjaranowski slawekjaranowski merged commit f85967a into mojohaus:master Aug 15, 2022
@mkarg

mkarg commented Aug 15, 2022

Copy link
Copy Markdown

Thanks for fixing this issue! :-)

@slawekjaranowski slawekjaranowski changed the title Set project.originalModel after flattening Fix #100 Set project.originalModel after flattening Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flatten-vs-shade incompatibility

4 participants