The problem is with the org.eclipse.osgi:org.eclipse.osgi.services dependency which has transitive dependeny to org.apache.felix:org.osgi.foundation. This JAR contains files from old java (probably 1.4) and I really don't understand why (but I'm pretty sure that it's reasonable and if someone knows the reason, please let me know in the comments section). But the problem was that I had these classes available in my JRE/JDK (1.6) and also in org.osgi.foundation library. This leads to the conflict - if the foundation jar is on the classpath before the JRE I had a compilation error: **The type Comparable is not generic; it cannot be parameterized with arguments``**. (This was because foundation jar contains non generic version of the Comparable class) So, the solution was to exclude this library from the dependency management ``` org.eclipse.core org.eclipse.core.runtime 3.6.0.v20100505 org.eclipse.equinox org.eclipse.equinox.common 3.6.0.v20100503 org.eclipse.osgi org.eclipse.osgi.services 3.2.100.v20100503 org.apache.felix org.osgi.foundation ``` After this exclusion everything works fine.