Changed the pom parser so that it orders inherited dependencies after declared dependencies. This was the behaviour previously and seems to be more consistent with what Maven does.