Error Assembling Jar A Zip File Cannot Include Itself
Contents |
here for a quick overview of the site Help Center Detailed a zip file cannot include itself ant answers to any questions you might have Meta Discuss the error creating assembly archive jar with dependencies error in opening zip file workings and policies of this site About Us Learn more about Stack Overflow the company
Ant Zip
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join
Maven-assembly-plugin
the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up A zip file cannot include itself - Ant build error up vote 2 down vote favorite I have error at the first maven assembly plugin example line of the following code while building with Ant builder,
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it http://stackoverflow.com/questions/3403941/a-zip-file-cannot-include-itself-ant-build-error only takes a minute: Sign up Maven error creating assembly - The destination directory cannot include itself up vote 3 down vote favorite I am trying to use maven-assembly-plugin to aggregate a single module application with another application. This is the error I am receiving: --- maven-assembly-plugin:2.4:single (make-assembly) @ vapor-sim --- Reading assembly descriptor: src/assemble/assembly.xml Copying files to C:\Users\pdl\Projects\Vapor-Head\08_Source_Code\vaporsim\target\vapor-sim ------------------------------------------------------------------------ BUILD http://stackoverflow.com/questions/33176084/maven-error-creating-assembly-the-destination-directory-cannot-include-itself FAILURE ------------------------------------------------------------------------ Total time: 3.274s Finished at: Fri Oct 16 11:40:20 CDT 2015 Final Memory: 18M/225M ------------------------------------------------------------------------ Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (make-assembly) on project vapor-sim: Failed to create assembly: Error creating assembly archive runtime: The destination directory cannot include itself. -> [Help 1] I believe I'm getting this error because the target folder contains the vapor-sim-1.0-SNAPSHOT.jar and during the assembly process this file is copied into the components directory for the eventual zip. But I'm not sure. All I have to compare is a multi-module aggregate assembly that I got to work with the single-module aggregate assembly that is failing. This is what the multi-module and single-module target folders respectively look like: Notice above there is no vapor-1.0-SNAPSHOT.jar file, only the aggregate zip files. Now, notice in the below image, we didn't get an aggregate zip file and we do have the vapor-sim-1.0-SNAPSHOT.jar file. If we drill down into vapor and vapor-sim directories we should eventually find the vapor-1.0-SNAPSHOT.jar and the vapor-sim-1.0-SNAPSHOT.jar respectively. This is my POM file: