This sounds like a configuration issue.  Do you a minimum project that
can produce this issue that we can run?

what version of assembly plugin and maven do you use?

-D

On Fri, Jun 22, 2012 at 6:50 PM, samra <[email protected]> wrote:
> here is the assembly.xml I have, in my project.
>
> <formats>
>                <format>tar.gz</format>
> </formats>
>
>        <fileSets>
>                <fileSet>
>                        <directory>${project.basedir}/resources</directory>
>                        <outputDirectory>/</outputDirectory>
>                </fileSet>
>
>                <fileSet>
>                        <directory>${project.basedir}/../</directory>
>                        <outputDirectory>/</outputDirectory>
>                        <includes>
>
>                                <include>**/e-*.jar</include>
>
>                                <include>**/target/e-*.war</include>
>                                <include>**/target/*.war</include>
>                        </includes>
>                        <excludes>
>
>                                <exclude>**/WEB-INF/lib/*.jar</exclude>
>                                <exclude>**/e-*-tests.jar</exclude>
>                        </excludes>
>                </fileSet>
>        </fileSets>
> </assembly>
>
> It does create tar.gz. But when I try to extract, it complains about the
> format.
>
> [6 jnk]$ tar xvfz
> e-distro-1.0-SNAPSHOT-r296-b323-d2012-06-22_11-49-43-distro.tar.gz
>
> gzip: stdin: not in gzip format
> tar: Child returned status 1
> tar: Error is not recoverable: exiting now
>
> [6 jnk]$ tar --gunzip -xvf
> e-distro-1.0-SNAPSHOT-r296-b323-d2012-06-22_11-49-43-distro.tar.gz
>
> gzip: stdin: not in gzip format
> tar: Child returned status 1
> tar: Error is not recoverable: exiting now
> [6 jnk]$ tar --ungzip -xvf
> e-distro-1.0-SNAPSHOT-r296-b323-d2012-06-22_11-49-43-distro.tar.gz
>
> gzip: stdin: not in gzip format
> tar: Child returned status 1
> tar: Error is not recoverable: exiting now
>
> when I changed the format to tar and try to extract, it complains as follows
> -
> tar: This does not look like a tar archive
> tar: Skipping to next header
> tar: Exiting with failure status due to previous errors
>
> is there a difference between tar created by maven and tar created on unix.
> ? if so, how to overcome it ? appreciate any suggestions. also, does the
> assembly.xml need more dependencies defined ? thanks
>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/tar-or-tar-gz-created-out-of-assembly-is-not-in-right-format-while-extracting-tp5711857.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to