Skip to main content

Posts

How to search all maven pom.xml for a specific dependency

I was facing some issues with a maven dependency, then I found the the right command to get the specific module pom.xml I was looking for.
As usually I copy it here as a reminder for the future (granted taht we have one, given the situation in North Korea)

$ find . -name pom.xml -exec grep -l jackson {} \;
Recent posts

How do I avoid deletion of plan branch in Bamboo?

Make sure the following checkbox is not flagged:




Do you miss "Expressions" view while debugging in Eclipse?

From time to time, I forget where the expression view can be set in Eclipse... it's right here in the Window panel 

View by projects or working sets in Eclipse

View by projects or working sets in Eclipse...always comes in handy!




Hybris setup issue: Unsupported major.minor version 52.0

While I was typing the final "ant all" command for hybris, it miserably failed with the following exception

hybris/bin/platform/resources/ant/antmacros.xml:123: java.lang.UnsupportedClassVersionError: de/hybris/ant/taskdefs/DbDriverValidator : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method)


Even though a "java -version" gave me back version 8, ant is still using $JAVA_HOME variable.
So you have to change it into the script. My suggestion is that you adapt the setantenv.bat script with the JAVA_HOME directly


@echo off
set ANT_OPTS=-Xmx512m -Dfile.encoding=UTF-8
set ANT_HOME=%~dp0apache-ant-1.9.1
set JAVA_HOME=C:/Program Files/Java/jdk1.8.0_101
set PATH=%ANT_HOME%\bin;%PATH%
rem deleting CLASSPATH as a workaround for PLA-8702
set CLASSPATH=
echo Setting ant home to: %ANT_HOME%
ant -version

If you can't install Oracle Express XE 11g 2 on Windows...

I spent the whole afternoon trying to set up a Oracle Express instance without any success.
I had the drivers installed, but I could not uninstall them.
It looked like the main instance was not correctly set up. After looking around, I noticed that even after complete uninstall of Oracle XE still the ORACLE_HOME environment variable was still there. I tried again manually removing it from System Variables and then reinstalling... and it finally worked!