Sunday 30 December 2018

How to include local library in Maven based Java EE project

Edit pom.xml and include

<configuration>
                 <packagingIncludes>WEB-INF/lib/*.jar</packagingIncludes>

Wednesday 24 October 2018

What to do when Maven dependency downloads are canceled in process and error comes next time

find ~/.m2  -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;


For windows:
cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i

Wednesday 18 July 2018

Increasing Heap Size with Netbeans

Edit netbeans.conf in Netbeans installation directory, etc subdirectory and set netbeans_default_options. An example is given below

netbeans_default_options="-J-client -J-Xss2m -J-Xms1024m -J-Xmx2048m -J-XX:PermSize=2048m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-
Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true"