Friday, December 12, 2014

Removing commons-logging Dependency from Spring with Ivy

Let's say you want Spring to use SLF4J instead of commons-logging.

First you need to remove the dependency from spring-core:

[TODO]

In the unlikely event you are already not loading transitive dependencies:

<dependency org="org.springframework" name="spring-core" rev="3.2.8.RELEASE" transitive="false"/>

you need to to nothing.

Then add the following dependencies to specify the framework you want to use:

<dependency org="org.slf4j" name="jcl-over-slf4j" rev="1.7.7" transitive="false"/>
<dependency org="org.slf4j" name="slf4j-api" rev="1.7.7" transitive="false"/>
<dependency org="org.slf4j" name="slf4j-log4j12" rev="1.7.7" transitive="false"/>

Ant: Class not found: javac1.8

This error is known to happen with Apache Ant versions less than 1.9.0, which aren't compatible with Java 8.
Upgrade!
Worked for me.

Thanks to Kristian.

Wednesday, December 10, 2014

Find out which applications are using port x on Windows

Find out which applications are using port x on Windows:
> netstat -aon | findstr 0.0:8080