code: public static String generate(org.sonatype.aether.graph.Dependency dependency) {
          return dependency.getArtifact().toString();
      }
docs: Convert a {@link org.sonatype.aether.graph.Dependency} to String notation of
  groupId:artifactId:extension:version or groupId:artifactId::type:classifier:version
  
  @param dependency {@link org.sonatype.aether.graph.Dependency}
  @return String notation