You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2017/11/10 02:29:00 UTC

[jira] [Commented] (KARAF-5477) [INFO] Apache Karaf :: Demos :: Profiles :: Static Assembly FAILURE [02:58 min]

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

Freeman Fang commented on KARAF-5477:
-------------------------------------

Hi David,

I can't reproduce this locally.

The error in your build log is memory related
{code}
[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
{code}

What's your MAVEN_OPTS set?Previous Karaf build instruction[1] indication you need set
 MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=128m 
but this is probably out-of-date as the Karaf project get bigger now.
Mine is
MAVEN_OPTS="-Xmx2048m -XX:MaxNewSize=1024m -XX:ThreadStackSize=1024m"

So please configure more memory for maven and retry.
[1]https://cwiki.apache.org/confluence/display/KARAF/Building

Freeman

> [INFO] Apache Karaf :: Demos :: Profiles :: Static Assembly FAILURE [02:58 min]
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-5477
>                 URL: https://issues.apache.org/jira/browse/KARAF-5477
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.2.0.M1
>         Environment: Ubuntu 16.04
> Java SE 9.0.1+11
>            Reporter: David Otasek
>            Assignee: Freeman Fang
>         Attachments: 2017_11_09_mvn_clean_install.log
>
>
> Maven build fails when producing demo



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)