This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
LinkMojo creates symbolic links to artifacts #86
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This new mojo does the same as the copy mojo, but instead of really moving bytes around it simply creates symbolic links to the original storage location. When having to copy large amounts of data just for the sake of getting a particular on-disk structure in the end, this new mojo can spare huge amounts of time -- and plenty of disk space.
Warning: Windows requires users to have right to create symlinks, which by default only admins have in elevated mode. Hence TestLinkMojo and LinkMojo both will fail if not executed with sufficient access rights and / or elevated mode. This is not a bug but intended beavior of the Windows(R) operating system family. To effectively work with this mojo the user account should be a non-administrator, which got assigned the needed access rights by an administrator.
Note: This PR discovers a bug in plexus-utils, hence bug fix found in PR 13 is essentially needed to pass tests!