Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
updated logging and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mosabua committed Feb 18, 2019
1 parent 65c6df8 commit 44a3c07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ useful information related to the wrapper goal of this plugin.
Adrian Shum https://github.com/adrianshum,
- Support for mirror URL usage from settings.xml
- see https://github.com/takari/takari-maven-plugin/pull/12
- contributed by Gareth Healy https://github.com/garethahealy
- contributed by Gareth Healy https://github.com/garethahealy and Manfred Moser - http://www.simpligility.com
- Wrapper mojo codebase and logging cleanup
- contributed by Manfred Moser - http://www.simpligility.com

Release performed by Manfred Moser - http://www.simpligility.com

Expand Down
5 changes: 2 additions & 3 deletions src/main/java/io/takari/maven/plugins/WrapperMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,13 @@ public void execute() throws MojoExecutionException, MojoFailureException {

Downloader downloader = new DefaultDownloader("mvnw", version);
try {
getLog().debug("Downloading Maven Wrapper from " + wrapperUrl);
downloader.download(new URI(wrapperUrl), destination);
getLog().debug("Downloaded maven-wrapper from " + wrapperUrl);

Path rootDirectory = Paths.get(session.getExecutionRootDirectory());

UnArchiver unarchiver = UnArchiver.builder().useRoot(false).build();
unarchiver.unarchive(destination, rootDirectory.toFile());
getLog().debug("Installed maven-wrapper successfully.");
getLog().debug("Extracted maven-wrapper successfully.");

updateMavenWrapperProperties(rootDirectory, wrapperUrl, distroUrl);

Expand Down

0 comments on commit 44a3c07

Please sign in to comment.