code: public static String generate(org.apache.maven.model.Dependency dependency) {
          StringBuilder notation = new StringBuilder()
                  .append(dependency.getGroupId()).append(":")
                  .append(dependency.getArtifactId()).append(":");
  
          String classifier = dependency.getClassifier();
          if ( classifier != null && Const.TEST_JAR.equals( classifier ) ) {
              notation.append( "jar:test-jar:");
          } else {
              String type = dependency.getType();
              if ( Const.TEST_JAR.equals( type ) ) {
                  notation.append("jar:test-jar:");
              } else {
                  notation.append(dependency.getType()).append(":");
              }
          }
          notation.append(dependency.getVersion());
  
          return notation.toString();
      }
docs: Convert a {@link org.apache.maven.model.Dependency} to String notation of
  groupId:artifactId:type:version or groupId:artifactId:type:classifier:version
  
  @param dependency {@link org.apache.maven.model.Dependency}
  @return String notation