Friday, August 26, 2011

Maven Vanilla Stuff

If you have a simple java project which is made up of only one module, using eclipse is very simple. To generate the eclipse project files from your POM you execute the following command:

mvn eclipse:eclipse

Eclipse needs to know the path to the local maven repository. Therefore the classpath variable M2_REPO has to be set. Execute the following command:

mvn -Declipse.workspace= eclipse:add-maven-repo
From Here

Thursday, August 4, 2011

df not showing correct free size after deleting a file

Some times when you delete a file df does not show the true file size (i.e. it does not consider the deleted file size ). This is due to the fact that some processes still have a handle on the file i.e. they might still be using the file. This can be confirmed by the following command

as root run "lsof -n | grep file

to see the list of processes still having a handle on file.

You may kill the processes or restart the system to fix this.