Class Utils


  • final class Utils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Utils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String collectionToString​(java.util.Collection<Artifact> collection, boolean multiLine)
      Convert a collection of artifacts to a human-readable string.
      static Artifact dependencyArtifact​(org.eclipse.aether.RepositorySystemSession repoSession, org.apache.maven.model.Dependency dependency)  
      static Artifact xmvnArtifact​(org.apache.maven.artifact.Artifact mavenArtifact)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utils

        private Utils()
    • Method Detail

      • xmvnArtifact

        public static Artifact xmvnArtifact​(org.apache.maven.artifact.Artifact mavenArtifact)
      • dependencyArtifact

        public static Artifact dependencyArtifact​(org.eclipse.aether.RepositorySystemSession repoSession,
                                                  org.apache.maven.model.Dependency dependency)
      • collectionToString

        public static java.lang.String collectionToString​(java.util.Collection<Artifact> collection,
                                                          boolean multiLine)
        Convert a collection of artifacts to a human-readable string.
        Parameters:
        collection - collection of artifacts
        multiLine - if multi-line representation should be used instead of single-line
        Returns:
        string representation of given collection of artifacts