public final class MavenProjectUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsDirectory(List<org.apache.maven.model.Resource> resources,
String directory)
Gets whether the specified list of resources contains a resource with the specified directory.
|
static List<String> |
getClasspathElements(org.apache.maven.project.MavenProject project,
List<org.apache.maven.artifact.Artifact> artifacts)
Gets a list of paths for the specified artifacts.
|
public static List<String> getClasspathElements(org.apache.maven.project.MavenProject project, List<org.apache.maven.artifact.Artifact> artifacts) throws org.apache.maven.artifact.resolver.ArtifactResolutionException
project - the projectartifacts - the artifacts to obtain paths forString paths to the specified artifactsorg.apache.maven.artifact.resolver.ArtifactResolutionException - if an artifact cannot be foundpublic static boolean containsDirectory(List<org.apache.maven.model.Resource> resources, String directory)
resources - the list of resources to examinedirectory - the resource directory to look fortrue if the list of resources contains a resource with the specified directoryCopyright © 2006-2012 Codehaus. All Rights Reserved.