[ 
https://issues.apache.org/jira/browse/PHOENIX-860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13937515#comment-13937515
 ] 

Gabriel Reid commented on PHOENIX-860:
--------------------------------------

No, doesn't happen to me, but I have the following environment variable set:
{code}export MAVEN_OPTS="-Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=256m 
-Djava.awt.headless=true"{code}

I'm on a Mac as well (probably doesn't have anything to do with that though). I 
find that there are a lot of projects I can't build without bumping up the heap 
size for maven. 

> Maven assembly fails with OOM error
> -----------------------------------
>
>                 Key: PHOENIX-860
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-860
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: James Taylor
>
> Also, there seem to be warnings in our pom.xml - not sure if they're 
> important or not, but it would be good for this to be clean.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building Phoenix Assembly 4.1.0-SNAPSHOT
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ 
> phoenix-assembly ---
> [INFO] 
> [INFO] --- maven-jar-plugin:2.4:test-jar (default) @ phoenix-assembly ---
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] Building jar: 
> /Users/jtaylor/dev/apache/incubator-phoenix/phoenix-assembly/target/phoenix-assembly-4.1.0-SNAPSHOT-tests.jar
> [INFO] 
> [INFO] --- maven-assembly-plugin:2.4:single (client) @ phoenix-assembly ---
> [INFO] Reading assembly descriptor: src/build/client.xml
> [WARNING] Cannot include project artifact: 
> org.apache.phoenix:phoenix-assembly:pom:4.1.0-SNAPSHOT; it doesn't have an 
> associated file or directory.
> [WARNING] Cannot include project artifact: 
> org.apache.phoenix:phoenix-assembly:pom:4.1.0-SNAPSHOT; it doesn't have an 
> associated file or directory.
> [WARNING] Cannot include project artifact: 
> org.apache.phoenix:phoenix-assembly:pom:4.1.0-SNAPSHOT; it doesn't have an 
> associated file or directory.
> [WARNING] Cannot include project artifact: 
> org.apache.phoenix:phoenix-assembly:pom:4.1.0-SNAPSHOT; it doesn't have an 
> associated file or directory.
> [WARNING] Archive: 
> /Users/jtaylor/dev/apache/incubator-phoenix/phoenix-core/target/phoenix-core-4.1.0-SNAPSHOT.jar
>  has already been added. Skipping.
> [WARNING] Archive: 
> /Users/jtaylor/dev/apache/incubator-phoenix/phoenix-hadoop-compat/target/phoenix-hadoop-compat-4.1.0-SNAPSHOT.jar
>  has already been added. Skipping.
> [WARNING] Archive: 
> /Users/jtaylor/dev/apache/incubator-phoenix/phoenix-hadoop1-compat/target/phoenix-hadoop1-compat-4.1.0-SNAPSHOT.jar
>  has already been added. Skipping.
> [WARNING] Cannot include project artifact: 
> org.apache.phoenix:phoenix-assembly:pom:4.1.0-SNAPSHOT; it doesn't have an 
> associated file or directory.
> Exception in thread "Thread-248" java.lang.OutOfMemoryError: Java heap space
>       at java.util.Arrays.copyOf(Arrays.java:2882)
>       at 
> java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
>       at 
> java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
>       at java.lang.StringBuilder.append(StringBuilder.java:119)
>       at 
> org.codehaus.plexus.components.io.attributes.AttributeParser.consumeLine(AttributeParser.java:115)
>       at 
> org.codehaus.plexus.util.cli.StreamPumper.consumeLine(StreamPumper.java:190)
>       at org.codehaus.plexus.util.cli.StreamPumper.run(StreamPumper.java:135)
> [ERROR] Java heap space -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to