@ SuppressWarnings ( "static-method" ) public Dependency toDependency ( Artifact artifact ) { final Dependency result = new Dependency ( ) ; result . setArtifactId ( artifact . getArtifactId ( ) ) ; result . setClassifier ( artifact . getClassifier ( ) ) ; result . setGroupId ( artifact . getGroupId ( ) ) ; result . setOptional ( artifact . isOptional ( ) ) ; result . setScope ( artifact . getScope ( ) ) ; result . setType ( artifact . getType ( ) ) ; result . setVersion ( artifact . getVersion ( ) ) ; return result ; }
Convert an artifact to a dependency .