Karaf : Heap size errors on build as it appears to be archiving more than is necessary (on some *nix) versions

Steps to reproduce

Steps to reproduce:
1. Build matterhorn 2.1.x on Ubuntu 15.04

Actual Results:
For example for an allinone build:
root@edmore-ubuntu:/opt/matterhorn# ls -alh assemblies/karaf-dist-allinone/target/
total 1.1G
drwxr-xr-x 6 root root 4.0K Oct 16 14:22 .
drwxr-xr-x 4 root root 4.0K Oct 16 14:21 ..
drwxr-xr-x 2 root root 4.0K Oct 16 14:22 antrun
drwxr-xr-x 2 root root 4.0K Oct 16 14:22 archive-tmp
drwxr-xr-x 8 root root 4.0K Oct 16 14:22 assembly
drwxr-xr-x 4 root root 4.0K Oct 16 14:22 classes
rw-rr- 1 root root 49 Oct 16 14:21 cpd.xml
rw-rr- 1 root root 28K Oct 16 14:21 java-basic.xml
rw-rr- 1 root root 5.0K Oct 16 14:21 java-imports.xml
rw-rr- 1 root root 4.1K Oct 16 14:21 java-unusedcode.xml
rw-rr- 1 root root 532M Oct 16 14:25 opencast-karaf-dist-allinone-2.1-SNAPSHOT.tar.gz
rw-rr- 1 root root 529M Oct 16 15:12 opencast-karaf-dist-allinone-2.1-SNAPSHOT.zip
rw-rr- 1 root root 104 Oct 16 14:21 pmd.xml

Expected Results:
For example on Ubuntu 14.04

tar file ~122M

Workaround (if any):
Build on another machine


Lars Kiesow
November 11, 2015, 1:44 PM

That is interesting. It probably means that the archives were built in memory.
Well, seems to be working now, hence I close this ticket.
Please feel free to re-open it if the problem persists.

Edmore Moyo
November 10, 2015, 1:14 PM
Basil Brunner
October 16, 2015, 4:04 PM

What memory settings do you have for Maven? Mine look like this and I never ran into the described problem:

$> echo $MAVEN_OPTS
-Xms256m -Xmx1024m

Won't Fix
Your pinned fields
Click on the next to a field label to start pinning.


Lars Kiesow


Edmore Moyo


Incorrectly Functioning With Workaround