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

[MWRAPPER-44] clean up MavenWrapperDownloader upon plugin execution #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nhojpatrick
Copy link
Contributor

@nhojpatrick
Copy link
Contributor Author

So reading more documentation and have just discovered -Dtype. Should multiple mvnw[Debug][.cmd] be created, otherwise if you do mvn wrapper:wrapper -Dtype=bin it might try and execute MavenWrapperDownloader.class as a backup.

@nhojpatrick nhojpatrick changed the title MWRAPPER-44 add MavenWrapperDownloader.java into distribution bin MWRAPPER-44 clean up MavenWrapperDownloader upon plugin execution Jan 25, 2022
@nhojpatrick
Copy link
Contributor Author

Okay change of plan, original patch was wrong as didn't understand apache's maven wrapper introduced distributionType. This patch now MavenWrapperDownloader.class before installing maven wrapper, and if distributionType is not 'source' it will as delete MavenWrapperDownloader.java.

@jorsol
Copy link
Contributor

jorsol commented Jan 25, 2022

Hi @nhojpatrick, thanks for your PR, I already worked on this in the PR #13, it's a fairly large change with many other fixes, would you mind reviewing that PR to check if it works for you? Thanks!

@nhojpatrick
Copy link
Contributor Author

nhojpatrick commented Jan 27, 2022

Hi @nhojpatrick, thanks for your PR, I already worked on this in the PR #13, it's a fairly large change with many other fixes, would you mind reviewing that PR to check if it works for you? Thanks!

Hi @jorsol your WrapperMojo.cleanup(Path) achieves the same results. I was going to create a clean up method myself but wanted to get the fix raised with the change raised with the simplest diff to review.

@slawekjaranowski
Copy link
Member

@nhojpatrick It is still valid after last changes to code?

@nhojpatrick
Copy link
Contributor Author

@slawekjaranowski i think it's still needed if you swap to source, it should delete the class. i just retested and i think it's still needed.

@elharo elharo changed the title MWRAPPER-44 clean up MavenWrapperDownloader upon plugin execution [MWRAPPER-44] clean up MavenWrapperDownloader upon plugin execution Mar 11, 2023
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.

3 participants