Creating symbolic links in a tar using the Maven Assembly plugin


A while ago I posted some promising info on how one might go about creating symbolic links in a tar using the Maven Assembly plugin. But as luck would have it there is no promise here… not yet. It’s such a shame because this can actually be programmed using some clever platform detection and command line trickery. It could also be done by enhancing the tar logic in whatever the open source project name is. However, I cannot do this today, nor do I have the time to investigate enhancing the tar objects in Java or anything else. The general idea is: given a directory with sym links, create a tar from the directory while maintaining the symbolic link structure within. I ran into the problem again this afternoon after revisiting the project. It’s funny how I thought I actually had a solution until I ran some of my old code searched Google and turned up my old blog post. If anyone has solved this problem speak up.

One thought on “Creating symbolic links in a tar using the Maven Assembly plugin

  1. This has been fixed for linux platform relying on java oracle 1.7 with maven assembly plugin 2.5 (fixed in plexus 2.6 and above dependency).

    Unfortunatly, it still does not work for the following configurations:
    – maven assembly plugin 2.5 / linux 64 bit / openjdk 7
    – maven assembly plugin 2.5 / linux 64 bit / oracle jre 1.8 (has to be reported as bug because expected to work on oracle jre 7 and above)
    – maven assembly plugin 2.5 / macosx / oracle jre 1.7

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s