I encountered a Maven error caused by asm-3.1.jar. The error message was saying:
1 | error: error reading /home/satish/.m2/repository/asm/asm/3.1/asm-3.1.jar; error in opening zip file |
I found soon that asm-3.1.jar in .m2 was not a (corrupt) jar file but an HTML file whose content was as follows:
1 2 3 4 5 6 7 | <html> <head><title>301 Moved Permanently</title></head> <body bgcolor="white"> <center><h1>301 Moved Permanently</h1></center> <hr><center>nginx/0.6.39</center> </body> </html> |
It seems 'mvn' cannot handle '301 Moved Permanently' properly. So, I downloaded asm-3.1.jar from the central repository.
1 2 3 | cd ~/.m2/repository/asm/asm/3.1 wget http://search.maven.org/remotecontent?filepath=asm/asm/3.1/asm-3.1.jar mv remotecontent\?filepath\=asm%2Fasm%2F3.1%2Fasm-3.1.jar asm-3.1.jar rm -f asm-3.1.pom |
Be sure to delete the old jar and .pom file.
Got that same error building jmeter components. Thanks for posting a solution.
ReplyDelete