|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.lindenbaum.maven.util.MavenUtils
public final class MavenUtils
Containing utilities related to maven plugins/projects.
Field Summary | |
---|---|
static String |
SEPARATOR
|
Constructor Summary | |
---|---|
MavenUtils()
|
Method Summary | |
---|---|
static org.apache.maven.artifact.Artifact |
getArtifact(org.apache.maven.artifact.Artifact from,
String version)
Returns an Artifact object of a specific Artifact with a
specific version. |
static File |
getArtifactFile(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository repository)
Returns an (existing) file pointing to an Artifact of an
ArtifactRepository . |
static File |
getPluginFile(String artifactId,
org.apache.maven.project.MavenProject project,
org.apache.maven.artifact.repository.ArtifactRepository repository)
Returns an (existing) file pointing to a plugin Artifact used by a
MavenProject from a ArtifactRepository . |
static String |
getReleaseName(org.apache.maven.artifact.Artifact artifact)
Returns the release name for the given Artifact . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String SEPARATOR
Constructor Detail |
---|
public MavenUtils()
Method Detail |
---|
public static File getPluginFile(String artifactId, org.apache.maven.project.MavenProject project, org.apache.maven.artifact.repository.ArtifactRepository repository) throws org.apache.maven.plugin.MojoExecutionException
Artifact
used by a
MavenProject
from a ArtifactRepository
.
artifactId
- to lookup in the projectproject
- to scan for the plugin Artifact
repository
- to scan for the artifact
org.apache.maven.plugin.MojoExecutionException
public static File getArtifactFile(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository repository) throws org.apache.maven.plugin.MojoExecutionException
Artifact
of an
ArtifactRepository
.
artifact
- to lookup in the repositoryrepository
- to scan for the artifact
org.apache.maven.plugin.MojoExecutionException
public static org.apache.maven.artifact.Artifact getArtifact(org.apache.maven.artifact.Artifact from, String version)
Artifact
object of a specific Artifact
with a
specific version.
from
- to cloneversion
- of the returned artifact
Artifact
with the requested versionpublic static String getReleaseName(org.apache.maven.artifact.Artifact artifact)
Artifact
. The release name
consists of the artifacts id and its version.
artifact
- to retrieve the release name from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |