问题,如果我没有' sudo'我得到了许可问题
如果我用' sudo' maven默认使用内存不足的Java 1.6。
构建命令:
mvn clean install -Phadoop-2,dist
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on project hive: Error finding remote resources manifests: /Users/davidlaxer/hive/target/maven-shared-archive-resources/META-INF/NOTICE (Permission denied) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on project hive: Error finding remote resources manifests
如果我跑 sudo mvn clean install -Phadoop-2,dist
JVM内存不足
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.resize(HashMap.java:462)
at java.util.HashMap.addEntry(HashMap.java:755)
at java.util.HashMap.put(HashMap.java:385)
at com.sun.tools.javac.parser.EndPosParser.storeEnd(EndPosParser.java:55)
at com.sun.tools.javac.parser.Parser.literal(Parser.java:561)
at com.sun.tools.javac.parser.Parser.term3(Parser.java:949)
at com.sun.tools.javac.parser.Parser.term2(Parser.java:683)
at com.sun.tools.javac.parser.Parser.term1(Parser.java:654)
at com.sun.tools.javac.parser.Parser.term(Parser.java:610)
at com.sun.tools.javac.parser.Parser.termRest(Parser
环境信息:
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home
MAVEN_OPTS=-Xmx1024m
$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)