stratosphere / graphmining-tutorial

GNU General Public License v3.0
1 stars 2 forks source link

Compiling error when running mvn clean install the first time #1

Closed matthieu-vergne closed 11 years ago

matthieu-vergne commented 11 years ago

Hi,

After cloning the repo and changing the path to the dataset, the project refuse to compile because of an unusable maven lib asm-3.1. Here is the log: http://pastebin.ca/2467253

If I try to run directly the first exercise's class (OutDegreeDistribution) it is the same.

matthieu-vergne commented 11 years ago

I tried to remove the asm dir in the repo to force the re-download but the result is the same : http://pastebin.ca/2467256

sscdotopen commented 11 years ago

Something seems to be wrong with your maven installation or your the files that maven downloaded.

I would recommend you delete /home/vergne/.m2/repository and try to build again.

matthieu-vergne commented 11 years ago

Still the same : I delete the complete ~/.m2/repository folder and reapply the "mvn -e clean install" command, which downloads everything and fails on this same asm library. The log seems to be the same than the last one I provided, just with the other libs which are downloaded.

StephanEwen commented 11 years ago

Since none of us ever had this problem, or can reproduce it, I would assume that your maven pulls a different file. Maybe you are directed to a different mirror of the repository or someone uploaded an invalid asm file.

Can you try to manually install asm-3.1 from a different maven repository? You can download it from http://mvnrepository.com/artifact/asm/asm-commons/3.1, unzip it and call mvn install (http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html)

Hope that helps. Sorry for the inconvenience, but this seems to be a (hopefully temporary) 3rd party problem.

rmetzger commented 11 years ago

This Stackoverflow user seems to have the same issue: http://stackoverflow.com/a/15274807/568695 and here is a more detailed solution: http://darutk-oboegaki.blogspot.de/2012/07/asm-31jar-error-in-opening-zip-file.html I guess the pom of asm contains no XML, as maven is stating

[WARNING] POM for 'asm:asm:pom:3.1:compile' is invalid.

It also seems that you're building from a directory that contains many special characters

/media/vergne/Desktop/FBK/#Work/#Courses/Large-Scale Data Analytics and Data Mining/exercises/graphmining-tutorial/target

Could you try to build somewhere like /home/vergne/graphmining-tutorial or so?

How do you access the internet? Are you behind a caching proxy (universities or corporate networks sometimes use squid proxies to reduce network traffic. Could be that you're behind a proxy that has a broken jar or pom in its cache).

But I'm quite sure that a file in your local .m2 repository is broken.

rmetzger commented 11 years ago

It seems that, for some reason, your maven does only try to download the files from snapshot repositories or some wired repos that do not contain asm.

Do you have any special configurations in /home/vergne/.m2/settings.xml or in /etc/maven/settings.xml Which distribution in which version are you using? Did you change any of the maven settings after you installed it?

I have a testing Ubuntu 13.04 here, that was completely empty and maven worked well out of the box. So it is actually able to pull the dependencies and everything.

matthieu-vergne commented 11 years ago

I downloaded the jar from the repo manually and replaced it in my folder => it works.

Thanks {^_^}.

StephanEwen commented 11 years ago

We just learned that this issue also arises when you use Maven Version 2 instead of Maven Version 3.

Please check that you use Maven Version 3!

uce commented 11 years ago

Yes, on Ubuntu you have to make sure that you have installed the maven package and not maven2.

sscdotopen commented 11 years ago

Strange, I have maven2 and could successfully build the project...