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
For example for an allinone build:
root@edmore-ubuntu:/opt/matterhorn# ls -alh assemblies/karaf-dist-allinone/target/
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
For example on Ubuntu 14.04
tar file ~122M
Workaround (if any):
Build on another machine
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.
What memory settings do you have for Maven? Mine look like this and I never ran into the described problem:
$> echo $MAVEN_OPTS