sonatype/nexus — comment on commit 89e13bcea046bc27c3b94215b8d5a36e4dffea7b
File: nexus-maven-plugins/nexus-maven-plugin/src/main/java/org/sonatype/nexus/plugin/AbstractStagingMojo.java line 300
By bentmann:

Note that DefaultArtifactRepository is a component that should better be created via the ArtifactRepositoryFactory. Likewise, DefaultRepositoryLayout is a component that should be retrieved as a component.