[ 
https://issues.apache.org/jira/browse/MASSEMBLY-759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14503503#comment-14503503
 ] 

Kristian Rosenvold commented on MASSEMBLY-759:
----------------------------------------------

The zip archiver contains logic like this, but it is unfortunately not present 
in the tar archiver. It should be possible to port/extract this logic from the 
zip archiver to use in the tar archiver. 

> tar outputs missing entries for target directory.
> -------------------------------------------------
>
>                 Key: MASSEMBLY-759
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-759
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>          Components: dependencySet
>    Affects Versions: 2.5.3
>            Reporter: mike duigou
>
> {quote}
> <assembly 
> xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2";
>           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>           
> xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
>  http://maven.apache.org/xsd/assembly-1.1.2.xsd";>
>     <id>tarball</id>
>     <formats>
>         <format>tar</format>
>         <format>tbz2</format>
>     </formats>
>     <includeBaseDirectory>false</includeBaseDirectory>
>      <dependencySets>
>         <dependencySet>
>             <outputDirectory>./lib</outputDirectory>
>             <directoryMode>0755</directoryMode>
>             <useProjectArtifact>true</useProjectArtifact>
>             <unpack>false</unpack>
>             <scope>runtime</scope>
>             <excludes>
>                 <exclude>*:javaee-web-api</exclude>
>             </excludes>
>         </dependencySet>
>     </dependencySets>
> </assembly>
> {quote}
> Does not output a tar record for the created "lib"directory, just for the 
> entries under it:
> {quote}
> ....
> -rw-r--r--  0 mike staff   60686 29 Dec 13:19 lib/commons-logging-1.1.1.jar
> ....
> {quote}
> The only alternative seems to be to create a lib directory somewhere and use 
> a fileset to copy it over before the dependencySet



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to