Google+ Followers

Aug 27, 2014

Exec Maven Plugin vm arguments

i configured mine to be used by using dedicated specific profile, here is the part from my pom.

                            <!-- below are the command line parameters separated -->
                            <!-- for example -Dcom.blabla=1  put it under system properties with key and value -->

hope it helps.

Aug 18, 2014

fedora 19 alacarte doesn't add icons to new applications

After wondering for a while,

I have found that you need to go to ~/.local/share/applications
edit each alacarte desktop file and fill manually the icon location and extension. 
Worked for me. 


Jun 24, 2014

dpkg: error: parsing file '/var/lib/dpkg/status' near line 9941 package 'libcloog-isl4:amd64'

After wasting let's say one hour, this solved it for me :
'sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status'


Jun 19, 2014

Set up gradle to build with alternative java

I am using ubuntu 14.04 LTS

Having java 7 and 8 installed from oracle.

Using alternative and working with java 7 but one of my projects use java 8.

gradle build --version

returns that it works with java 7 -> since most of my projects use this version, i don't want to change this.

Solution: creating in the java 8 project, in the root directory, file named

inside it for example in my case :

this way, when you will do gradle build in this project, gradle will use this version instead of the one defined for him.

Hoped it helped,


Jun 18, 2014

Loading of /usr/lib/erlang/lib/mnesia-4.11/ebin/mnesia.beam failed: badfile

I am working with rabbitmq , after the latest ubuntu 14.04 LTS update , i got this exception.

As result rabbit is not working.

I worked with 14 version of erlang .

Solution was to upgrade to the latest version of erlang.

Jun 5, 2014

Sample log4j property file, logging only to file, if you want console add 'stdout' in the rootlogger and remove the comments in the section below.
I included hibernate and spring logging relevant

# Root logger option
log4j.rootLogger=INFO, file

# To see hibernate parameters in the query and not just ? you must set this to TRACE

# Direct log messages to a log file
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %5p %c{1}:%L - %m%n

# Direct log messages to stdout
#log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - #%m%n

# spring transaction log

# hibernate full details log

May 21, 2014

NoClassDefFoundError: jersey/repackaged/com/google/common/collect/Maps


I am working with spring 4.0.4 and jersey 2.7 and Gradle 1.11 suddelny out of nowhere i build and deployed to my tomcat 7 (latest release) and got the above error.
Worked to figure out what went wrong about an hour.
Than i saw that they released a new 2.8 lately, decided to try it - it worked +

Problem solved for me after upgrading from jersey 2.7 to 2.8
and adding this to my gradle dependencies

Hopefully it will help you too,