Class Maven
- java.lang.Object
-
- com.github.fridujo.junit.extension.classpath.maven.Maven
-
public class Maven extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<Maven>from(PathElement jarPath)protected static StringgetGroupId(org.apache.maven.model.Model model)protected static Optional<org.apache.maven.model.Model>getNonEffectiveModel(PathElement jarPath)protected static StringgetVersion(org.apache.maven.model.Model model)Set<Gav>listDependencies(PathElement jarPath)protected Optional<org.apache.maven.model.Model>loadMavenProject(PathElement jarPath)This method is relatively slow.
Considering that it will be called hundreds of times, even if it take only 10ms (90th), the overall time will be above seconds.
-
-
-
Constructor Detail
-
Maven
public Maven(String localRepo)
-
-
Method Detail
-
from
public static Optional<Maven> from(PathElement jarPath)
-
listDependencies
public Set<Gav> listDependencies(PathElement jarPath)
-
getVersion
protected static String getVersion(org.apache.maven.model.Model model)
-
getGroupId
protected static String getGroupId(org.apache.maven.model.Model model)
-
getNonEffectiveModel
protected static Optional<org.apache.maven.model.Model> getNonEffectiveModel(PathElement jarPath)
-
loadMavenProject
protected Optional<org.apache.maven.model.Model> loadMavenProject(PathElement jarPath)
This method is relatively slow.
Considering that it will be called hundreds of times, even if it take only 10ms (90th), the overall time will be above seconds.This is why most of the results of this methods must be cached, to avoid degrading performances proportionally to the number of uses.
-
-