You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by mkarg <gi...@git.apache.org> on 2016/06/01 22:47:34 UTC
[GitHub] maven-plugins pull request #86: LinkMojo creates symbolic links to artifacts
GitHub user mkarg opened a pull request:
https://github.com/apache/maven-plugins/pull/86
LinkMojo creates symbolic links to artifacts
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](https://github.com/codehaus-plexus/plexus-utils/pull/13) is essentially needed to pass tests!**
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/headcrashing/maven-plugins link
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/maven-plugins/pull/86.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #86
----
commit 4f817ccb7d0aad3f52aa393a58bdabdb8ae07212
Author: Markus KARG <ma...@headcrashing.eu>
Date: 2016-05-25T22:15:28Z
new method linkFile(src, link) creates symlink
commit 08c9c07050b49cc0e4254bab118a900651c55350
Author: Markus KARG <ma...@headcrashing.eu>
Date: 2016-05-25T22:30:54Z
LinkMojo creates symbolic links to artifacts
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.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org