Class MavenMojoProjectParser

java.lang.Object
org.openrewrite.maven.MavenMojoProjectParser

public class MavenMojoProjectParser extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    MavenMojoProjectParser(org.apache.maven.plugin.logging.Log logger, Path baseDir, boolean pomCacheEnabled, @Nullable String pomCacheDirectory, org.apache.maven.rtinfo.RuntimeInformation runtime, boolean skipMavenParsing, Collection<String> exclusions, Collection<String> plainTextMasks, int sizeThresholdMb, org.apache.maven.execution.MavenSession session, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.openrewrite.SourceFile>
    listSourceFiles(org.apache.maven.project.MavenProject mavenProject, Iterable<org.openrewrite.style.NamedStyles> styles, org.openrewrite.ExecutionContext ctx)
     
    org.openrewrite.xml.tree.Xml.Document
    parseMaven(org.apache.maven.project.MavenProject mavenProject, List<org.openrewrite.marker.Marker> projectProvenance, org.openrewrite.ExecutionContext ctx)
     
    void
    Used to reset the type cache.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MavenMojoProjectParser

      public MavenMojoProjectParser(org.apache.maven.plugin.logging.Log logger, Path baseDir, boolean pomCacheEnabled, @Nullable @Nullable String pomCacheDirectory, org.apache.maven.rtinfo.RuntimeInformation runtime, boolean skipMavenParsing, Collection<String> exclusions, Collection<String> plainTextMasks, int sizeThresholdMb, org.apache.maven.execution.MavenSession session, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
  • Method Details

    • listSourceFiles

      public List<org.openrewrite.SourceFile> listSourceFiles(org.apache.maven.project.MavenProject mavenProject, Iterable<org.openrewrite.style.NamedStyles> styles, org.openrewrite.ExecutionContext ctx) throws org.apache.maven.artifact.DependencyResolutionRequiredException, org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.artifact.DependencyResolutionRequiredException
      org.apache.maven.plugin.MojoExecutionException
    • parseMaven

      @Nullable public org.openrewrite.xml.tree.Xml.Document parseMaven(org.apache.maven.project.MavenProject mavenProject, List<org.openrewrite.marker.Marker> projectProvenance, org.openrewrite.ExecutionContext ctx)
    • resetTypeCache

      public void resetTypeCache()
      Used to reset the type cache.