public class DefaultMavenRepositoryLayoutUtils extends Object
| Constructor and Description |
|---|
DefaultMavenRepositoryLayoutUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildMainPOMFileName(org.apache.maven.artifact.Artifact artifact)
Build the main pom file name in a maven repository.
|
static String |
getFormattedFileName(org.apache.maven.artifact.Artifact artifact)
Build the default artifact file name in a maven repository.
|
static File |
getFormattedOutputDirectory(File outputDirectory,
org.apache.maven.artifact.Artifact artifact)
Resolves an artifact full path in a given repository based on the default maven repository layout.
|
static String |
getNormalizedVersion(org.apache.maven.artifact.Artifact artifact)
Resolves snapshot versions substituting the timestamp by SNAPSHOT.
|
static String |
getPomFileName(org.apache.maven.artifact.Artifact artifact)
Build the default pom file name in a maven repository.
|
public static String getPomFileName(org.apache.maven.artifact.Artifact artifact)
artifact - the artifact from which the default pom file name is going to be resolved.public static String getFormattedFileName(org.apache.maven.artifact.Artifact artifact)
artifact - the artifact from which the default file name is going to be resolved.public static String buildMainPOMFileName(org.apache.maven.artifact.Artifact artifact)
artifact - the artifact from which the main pom file name is going to be resolved.public static String getNormalizedVersion(org.apache.maven.artifact.Artifact artifact)
artifact - the artifact that is going to have its version normalized.public static File getFormattedOutputDirectory(File outputDirectory, org.apache.maven.artifact.Artifact artifact)
outputDirectory - the directory that is going to have its path prepended to the formatted output directory.artifact - the artifact that from which the formatted output directory is going to be constructed.Copyright © 2017. All rights reserved.