Class MavenProjectHelper
- java.lang.Object
-
- org.eclipse.jetty.maven.plugin.utils.MavenProjectHelper
-
public class MavenProjectHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MavenProjectHelper(org.apache.maven.project.MavenProject project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.Path
getArtifactPath(org.apache.maven.artifact.Artifact artifact)
Gets path to artifact.org.apache.maven.project.MavenProject
getMavenProject(org.apache.maven.artifact.Artifact artifact)
Gets maven project if referenced in reactor
-
-
-
Method Detail
-
getMavenProject
public org.apache.maven.project.MavenProject getMavenProject(org.apache.maven.artifact.Artifact artifact)
Gets maven project if referenced in reactor- Parameters:
artifact
- - maven artifact- Returns:
MavenProject
if artifact is referenced in reactor, otherwise null
-
getArtifactPath
public java.nio.file.Path getArtifactPath(org.apache.maven.artifact.Artifact artifact)
Gets path to artifact. If artifact is referenced in reactor, returns path to ${project.build.outputDirectory}. Otherwise, returns path to location in local m2 repo. Cannot return null - maven will complain about unsatisfied dependency during project built.- Parameters:
artifact
- maven artifact- Returns:
- path to artifact
-
-