Error Assembling War A Zip File Cannot Include Itself
Contents |
here for a quick overview of the site Help
Ant Jar A Zip File Cannot Include Itself
Center Detailed answers to any questions you might have Meta error creating assembly archive jar with dependencies error in opening zip file Discuss the workings and policies of this site About Us Learn more about Stack
Ant Zip
Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question maven-assembly-plugin 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 only takes a minute: Sign up A zip file cannot include itself - Maven-assembly plugin up vote 3 down vote favorite I'm maven assembly plugin example building a project using maven assembly plugin. But the process fail with the following error,(Here I pasted the error in jenkins. I checked without jenkins too.) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2:29.792s [INFO] Finished at: Fri Mar 14 10:26:58 IST 2014 [INFO] Final Memory: 26M/75M [INFO] ------------------------------------------------------------------------ Waiting for Jenkins to finish collecting data [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:assembly (default) on project ExecutionBot: Failed to create assembly: Error creating assembly archive jar-with-dependencies: A zip file cannot include itself -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Configuration in pom.xml
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 http://stackoverflow.com/questions/22396986/a-zip-file-cannot-include-itself-maven-assembly-plugin 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 only takes a minute: Sign up Maven error creating assembly - The destination directory cannot include itself up vote http://stackoverflow.com/questions/33176084/maven-error-creating-assembly-the-destination-directory-cannot-include-itself 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 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-
problema e não sabia o que estava fazendo de errado, então tomei a decisão de verificar linha por linha https://blogdoparanga.wordpress.com/2012/09/04/maven-error-assembling-war-a-zip-file-cannot-include-itself/ do pom.xml e do arquivo assembly. A situação era a http://ant.1045680.n5.nabble.com/quot-A-zip-file-cannot-include-itself-quot-though-exclude-td1344808.html seguinte toda vez que eu tentar fazer o deploy de um profile e aparecia este erro: Error assembling WAR: A zip file cannot include itself Maven Error assembling WAR: A zip file cannot include itself Depois de muita analise percebi que estava zip file faltando alguma coisa em meu arquivo pom.xml como pode ser visto na imagem a seguir: maven pom.xml Como pode ver na linha onde está o cursor (destacada de azul), a tag final name não está preenchida e por este motivo o erro acontecia, mas o maven não informa, ô bonitão você esqueceu de a zip file preencher a tag final name. Após a adição do final name o deploy ocorreu com sucesso. maven build success É galera por hoje é só. -23.548943 -46.638818 Share this:TwitterFacebookCurtir isso:Curtir Carregando... Relacionado Postado em java, maven A zip file cannot include itselfError assembling WARError assembling WAR: A zip file cannot include itselffinal nameitselfmavenpomxml Navegação de Posts < Anterior [ANDROID] JExam Simulado OCJP paraAndroidSeguinte > [LINUX/JAVA] Corrigindo Failed to load JavaHL Library -ECLIPSE Deixe uma resposta Cancelar resposta Insira seu comentário aqui... Preencha os seus dados abaixo ou clique em um ícone para log in: E-mail (obrigatório) (Nunca tornar endereço público) Nome (obrigatório) Site Você está comentando utilizando sua conta WordPress.com. (Sair/Alterar) Você está comentando utilizando sua conta Twitter. (Sair/Alterar) Você está comentando utilizando sua conta Facebook. (Sair/Alterar) Você está comentando utilizando sua conta Google+. (Sair/Alterar) Cancelar Conectando a %s Avise-me sobre novos comentários por email. Crie um website ou blog gratuito no WordPress.com. %d blogueiros gostam disto:
view ♦ ♦ | Report Content as Inappropriate ♦ ♦ "A zip file cannot include itself" though exclude Hello, I get the above mentioned error on building this target: