Maven Error Creating Shaded Jar Error In Opening Zip File
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings error in opening zip file during maven build and policies of this site About Us Learn more about Stack Overflow
Error In Opening Zip File Java
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation error in opening zip file jenkins Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it
Error In Opening Zip File Ant
only takes a minute: Sign up Maven : error in opening zip file when running maven up vote 33 down vote favorite 7 [ERROR] error: error reading C:\Users\suresh\.m2\repository\org\jdom\jdom\1.1\jdom-1.1.jar; error in opening zip file [ERROR] error: error reading C:\Users\suresh\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar; error in opening zip file [ERROR] error: error reading C:\Users\suresh\.m2\repository\org\apache\cxf\cxf-rt-bindings-http\2.2.1\cxf-rt-bindings-http-2.2.1.jar; error in opening zip file [ERROR] error: error reading C:\Users\suresh\.m2\repository\org\codehaus\jra\jra\1.0-alpha-4\jra-1.0-alpha-4.jar; error in error in opening zip file android studio opening zip file [ERROR] error: error reading C:\Users\suresh\.m2\repository\org\apache\cxf\cxf-api\2.2.1\cxf-api-2.2.1.jar; error in opening zip file [ERROR] error: error reading C:\Users\suresh\.m2\repository\org\apache\cxf\cxf-common-utilities\2.2.1\cxf-common-utilities-2.2.1.jar; error in opening zip file [INFO] 44 errors How to resolve this error while running mvn clean install? And I see that, on to the repository path in my disk, starting from servlet, no packages are being created inside repository. maven share|improve this question edited May 3 at 11:30 R O M A N I A 12.5k116677 asked Sep 29 '11 at 15:53 UnKnown 5,62542147245 try: mvn -U clean install. The -U parameter forces maven to update. –PaoloVictor Sep 29 '11 at 15:55 add a comment| 8 Answers 8 active oldest votes up vote 50 down vote Probably, contents of the JAR files in your local .m2 repository are HTML saying "301 Moved Permanently". It seems that mvn does not handle "301 Moved Permanently" properly as expected. In such a case, download the JAR files manually from somewhere (the central repository, for example) and put them into your .m2 repository. See also: asm-3.1.jar; error in opening zip file http:/
here for a quick overview
Error In Opening Zip File Eclipse
of the site Help Center Detailed answers to any
Javac Error In Opening Zip File
questions you might have Meta Discuss the workings and policies of this site error creating shaded jar is a directory About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack http://stackoverflow.com/questions/7600028/maven-error-in-opening-zip-file-when-running-maven Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up maven install throw “error http://stackoverflow.com/questions/9526405/maven-install-throw-error-in-opening-zip-file-only-after-the-second-try in opening zip file” only after the second try up vote 5 down vote favorite 1 I try to run maven install on my project with some dependencies:
assumes all non-pom dependencies are .zip formatted files and should be on the classpathAgile Board ExportXMLWordPrintableJSON Details Type: Bug Status: Closed Priority: Major Resolution: Incomplete Affects Version/s: 2.0 Fix Version/s: None Labels: None Description http://maven.apache.org/plugins/maven-shade-plugin/xref/org/apache/maven/plugins/shade/mojo/ShadeMojo.html#455 This https://issues.apache.org/jira/browse/MSHADE-152 selects from all artifacts, even those which are not addedToClasspath, e.g. see https://github.com/torquebox/jruby-maven-plugins/blob/master/gem-maven-plugin/src/main/resources/META-INF/plexus/components.xml#L89 The net result is that, for example, if you have a dependency of type gem shade will barf with the ugly [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.0:shade (default) on project shade-gems: Error creating shaded jar: error in opening zip file ~/.m2/repository/rubygems/bundler/1.3.4/bundler-1.3.4.gem -> [Help 1] To my mind, the shade plugin should error in only shade artifacts that are added to the classpath and should ignore all non-classpath artifacts. Fixing this may result in breaking backwards compatibility if anyone is relying on the side-effects of the current broken behaviour, so perhaps the solution is to either add a flag, defaulting to false, which would enable the broken behaviour or else allow the explicit includes to pull the files error in opening back in... in any case may require a bump to 3.0 when this issue is fixed OptionsSort By NameSort By DateAscendingDescendingAttachments pom.xml 28/Feb/16 10:45 2 kB John Ferlito Activity Ascending order - Click to sort in descending order All Comments Work Log History Activity Transitions Hide Permalink Karl Heinz Marbaise added a comment - 04/Jun/15 20:49 I assume this is fixed with newer releases. If not please add more information (best would be an example project) and don't hesitate to reopen the issue in this case. Show Karl Heinz Marbaise added a comment - 04/Jun/15 20:49 I assume this is fixed with newer releases. If not please add more information (best would be an example project) and don't hesitate to reopen the issue in this case. Hide Permalink John Ferlito added a comment - 28/Feb/16 10:44 This is still an issue. Attaching a sample file Show John Ferlito added a comment - 28/Feb/16 10:44 This is still an issue. Attaching a sample file People Assignee: Karl Heinz Marbaise Reporter: Stephen Connolly Votes: 0 Vote for this issue Watchers: 3 Start watching this issue Dates Created: 04/Jul/13 03:51 Updated: 28/Feb/16 10:45 Reso