Add sonatype repository to project definition.
Fix NPE when calling stop before calling start.