问题
I have had this problem since the day I started using assembly . sbt assembly (for any project) never completes on my Mac. It just hangs at the last step . For this one reason . I transfer my code to a Linux box and build there . Anyone else has experienced this ? . Any ideas on how I can go about debugging ? . I had Lion with Java 1.6.0_37 . Now upgraded to Mountain Lion
回答1:
I had the same problem some time ago. Do you have anti-virus software installed? In my case it was Sophos, that tried to check the jar, while sbt was still building it, which somehow led to 100% CPU usage and the assembly task taking forever. Check your activity monitor for task other than java using large amounts of cpu time and try to deactivate them. I don't know if there is a way to keep Sophos from checking the jars, would be interesting though.
来源:https://stackoverflow.com/questions/13965858/sbt-assembly-hangs-on-my-mac