Package org.fedoraproject.xmvn.mojo
Class Utils
- java.lang.Object
-
- org.fedoraproject.xmvn.mojo.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)
-
-
-
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 artifactsmultiLine
- if multi-line representation should be used instead of single-line- Returns:
- string representation of given collection of artifacts
-
-