Downgraded to Java 1.6 so that it can be used in projects also using maven-bundle-plugin which seems to have problems with 1.7 compiled code.