Saturday, March 1, 2014

Build works, then doesn't, then it does, then it doesn't....
































































































































I'm ripping my hair out as we speak. I can't figure out what's going on. The problem started from the begining. I pulled an svn repository, ran "sudo mvn package" and 6/7 of my "projects" built. Then I did "sudo mvn clean package", only 1 built this time. Then "sudo mvn package" again, and all 8 built.
































































































































So I copied the repo to a user under /home. Lets just say /home/user/workspace/sources. I copied the whole .m2/ directory from /root/.m2 to /home/user/.m2. The experience getting it to build in the home directory was much the same. Then I copied the repo to another directory in the same /home environment. Same thing, failed 3 times, 4th time it all built. Running sudo mvn package in eclipse seems to be hit and miss. Sometimes only one "project" will build, sometimes 6/7 will. Sometimes none at all.
































































































































Oh, i forgot to mention I had to "rm -R" my .m2/repository/ directory a few times in each environment. Evidently the smallest internet hickup corrupts Maven's downloads. This is nuts. I want to like Maven, but she's kind of a crazy b*#@. Is this normal Maven behavior or is there something I'm missing.































































































































































































































































No comments:

Post a Comment