Package org.openrewrite.maven
Class MavenMojoProjectParser
java.lang.Object
org.openrewrite.maven.MavenMojoProjectParser
-
Constructor Summary
ConstructorsConstructorDescriptionMavenMojoProjectParser(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 TypeMethodDescriptionList<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.DocumentparseMaven(org.apache.maven.project.MavenProject mavenProject, List<org.openrewrite.marker.Marker> projectProvenance, org.openrewrite.ExecutionContext ctx) voidUsed to reset the type cache.
-
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.DependencyResolutionRequiredExceptionorg.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.
-