Class Maven


  • public class Maven
    extends Object
    • Constructor Detail

      • Maven

        public Maven​(String localRepo)
    • Method Detail

      • 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.