Posts Tagged terminal

Remove Mac OS / Unix .DS_Store Files

It seems that Ant won’t delete directories with .DS_Store files and you can’t get rid of them in finder (b/c it’ll just replace them when you remove them), so we needed to leverage a quick command in terminal:

sudo find . -name “.DS_Store” -depth -exec rm {} \;

The aforementioned command will recursively remove all of the .DS_Store files from a given directory; we thought someone else mind find this useful.

Post to Twitter Tweet This Post

, , ,

No Comments

Maven2 Install Error: java.lang.OutOfMemoryError: Java heap space

If you ever run the maven command “maven install” and you run into the following error:

[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Java heap space
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: Java heap space

Try setting the MAVEN_OPTS memory to a larger max; eg:

Last login: Wed Jul  1 12:33:56 on ttys000
brian-rileys-macbook-pro:~ brianmriley$ export MAVEN_OPTS=-Xmx1024m
brian-rileys-macbook-pro:~ brianmriley$ cd /Users/brianmriley/projects/spring-hibernate/workspaces/emp-mgmt-console/SpringActionscript/trunk/core
brian-rileys-macbook-pro:core brianmriley$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Spring ActionScript
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
...
[INFO] Installing /Users/brianmriley/projects/spring-hibernate/workspaces/emp-mgmt-console/SpringActionscript/trunk/core/target/spring-actionscript-0.8-SNAPSHOT.swc to /Users/brianmriley/.m2/repository/org/springextensions/spring-actionscript/0.8-SNAPSHOT/spring-actionscript-0.8-SNAPSHOT.swc
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33 seconds
[INFO] Finished at: Wed Jul 01 14:58:34 EDT 2009
[INFO] Final Memory: 26M/115M
[INFO] ------------------------------------------------------------------------

Just keep in mind this is a one time dealio and you’ll have to set this each time you run a maven install.

Post to Twitter Tweet This Post

, , , , , ,

1 Comment