Closed bondarbd closed 3 years ago
Hey @bondarbd -- just to rule it out, could we double-check the recipe name of rg.openwrite.java.RemoveAnnotation
? I believe it should be org.openrewrite.java.RemoveAnnotation
Could you try updating the recipe name, and failing that, could you try running mvn rewrite:discover
and sharing the output of what recipes are discovered?
Hi @aegershman, thank you for your reply. "or -> org" is my mistake when copying the error text. In Maven, the dependencies are all right...
There is result of mvn rewrite:discover
:
[INFO] --- rewrite-maven-plugin:3.0.0:discover (default-cli) @ S_model ---
java.lang.IllegalArgumentException: Could not resolve type id 'org.openwrite.java.RemoveAnnotation' as a subtype of org.openrewrite.Recipe
: no such class found
at [Source: UNKNOWN; line: -1, column: -1]
at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4314)
at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4245)
at org.openrewrite.config.YamlResourceLoader.lambda$listRecipes$1(YamlResourceLoader.java:149)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
at org.openrewrite.config.YamlResourceLoader.listRecipes(YamlResourceLoader.java:164)
at org.openrewrite.config.Environment.lambda$listRecipes$0(Environment.java:37)
at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
at org.openrewrite.config.Environment.listRecipes(Environment.java:38)
at org.openrewrite.maven.RewriteDiscoverMojo.execute(RewriteDiscoverMojo.java:34)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id 'org.openwrite.java.RemoveAnnotation' as a subtype of org.openrewrite.Recipe
: no such class found
at [Source: UNKNOWN; line: -1, column: -1]
at com.fasterxml.jackson.databind.exc.InvalidTypeIdException.from(InvalidTypeIdException.java:43)
at com.fasterxml.jackson.databind.DeserializationContext.invalidTypeIdException(DeserializationContext.java:1933)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownTypeId(DeserializationContext.java:1424)
at com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver._typeFromId(ClassNameIdResolver.java:76)
at com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver.typeFromId(ClassNameIdResolver.java:66)
at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:159)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:120)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:107)
at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:263)
at com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:74)
at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4309)
... 44 more
java.lang.IllegalArgumentException: Could not resolve type id 'org.openwrite.java.RemoveAnnotation' as a subtype of org.openrewrite.Recipe
: no such class found
at [Source: UNKNOWN; line: -1, column: -1]
at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4314)
at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4245)
at org.openrewrite.config.YamlResourceLoader.lambda$listRecipes$1(YamlResourceLoader.java:149)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
[info] Found 3 active recipes and 20 activatable recipes.
[info]
[info] Active Recipes:
[info] org.openrewrite.java.RemoveUnusedImports
[info] com.myProject.RemoveAnnotations
[info] org.openrewrite.java.format.AutoFormat
[info]
[info] Activatable Recipes:
[info] org.openrewrite.java.search.FindSecrets
[info] org.openrewrite.java.RemoveUnusedImports
[info] org.openrewrite.java.cleanup.CovariantEquals
[info] org.openrewrite.java.cleanup.FinalizeLocalVariables
[info] org.openrewrite.java.cleanup.HideUtilityClassConstructor
[info] org.openrewrite.java.cleanup.SimplifyBooleanExpression
[info] org.openrewrite.java.cleanup.SimplifyBooleanReturn
[info] org.openrewrite.java.cleanup.UnnecessaryParentheses
[info] org.openrewrite.java.format.AutoFormat
[info] org.openrewrite.java.format.BlankLines
[info] org.openrewrite.java.format.NormalizeFormat
[info] org.openrewrite.java.format.RemoveTrailingWhitespace
[info] org.openrewrite.java.format.Spaces
[info] org.openrewrite.java.format.TabsAndIndents
[info] org.openrewrite.java.format.WrappingAndBraces
[info] org.openrewrite.java.migrate.MigrateOpenRewrite6xNames
[info] org.openrewrite.maven.RemoveRedundantDependencyVersions
[info] org.openrewrite.xml.AutoFormat
[info] org.openrewrite.yaml.CoalesceProperties
[info] com.myProject.RemoveAnnotations
[info]
[info] Descriptors:
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
at org.openrewrite.config.YamlResourceLoader.listRecipes(YamlResourceLoader.java:164)
at org.openrewrite.config.YamlResourceLoader.listRecipeDescriptors(YamlResourceLoader.java:169)
at org.openrewrite.config.Environment.lambda$listRecipeDescriptors$1(Environment.java:49)
at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
at org.openrewrite.config.Environment.listRecipeDescriptors(Environment.java:50)
at org.openrewrite.maven.RewriteDiscoverMojo.execute(RewriteDiscoverMojo.java:49)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id 'org.openwrite.java.RemoveAnnotation' as a subtype of org.openrewrite.Recipe
: no such class found
at [Source: UNKNOWN; line: -1, column: -1]
at com.fasterxml.jackson.databind.exc.InvalidTypeIdException.from(InvalidTypeIdException.java:43)
at com.fasterxml.jackson.databind.DeserializationContext.invalidTypeIdException(DeserializationContext.java:1933)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownTypeId(DeserializationContext.java:1424)
at com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver._typeFromId(ClassNameIdResolver.java:76)
at com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver.typeFromId(ClassNameIdResolver.java:66)
at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:159)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:120)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:107)
at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:263)
at com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:74)
at com.fasterxml.jackson.databind.ObjectMapper.convert(ObjectMapper.java:4309)
... 45 more
[info] org.openrewrite.java.search.FindSecrets
[info] org.openrewrite.java.search.FindText
[info] patterns: [(xox[pboa]-[0-9]{12}-[0-9]{12}-[0-9]{12}-[a-z0-9]{32}), -----BEGIN RSA PRIVATE KEY-----, -----BEGIN DSA PRIVATE KEY-----, -----BEGIN EC PRIVATE KEY-----, -----BEGIN PGP PRIVATE KEY BLOCK-----, ((?:A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}), amzn.mws.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}, AKIA[0-9A-Z]{16}, da2-[a-z0-9]{26}, EAACEdEose0cBA[0-9A-Za-z]+, [fF][aA][cC][eE][bB][oO][oO][kK].['|"][0-9a-f]{32}['|"], [gG][iI][tT][hH][uU][bB].['|"][0-9a-zA-Z]{35,40}['|"], [aA][pP][iI]?[kK][eE][yY].['|"][0-9a-zA-Z]{32,45}['|"], [sS][eE][cC][rR][eE][tT].['|"][0-9a-zA-Z]{32,45}['|"], AIza[0-9A-Za-z-]{35}, AIza[0-9A-Za-z-]{35}, [0-9]+-[0-9A-Za-z]{32}.apps.googleusercontent.com, AIza[0-9A-Za-z-]{35}, [0-9]+-[0-9A-Za-z_]{32}.apps.googleusercontent.com, "type": "serviceaccount", AIza[0-9A-Za-z-]{35}, [0-9]+-[0-9A-Za-z]{32}.apps.googleusercontent.com, ya29.[0-9A-Za-z-]+, AIza[0-9A-Za-z-]{35}, [0-9]+-[0-9A-Za-z]{32}.apps.googleusercontent.com, [hH][eE][rR][oO][kK][uU].[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}, [0-9a-f]{32}-us[0-9]{1,2}, key-[0-9a-zA-Z]{32}, [a-zA-Z]{3,10}://[^/\s:@]{3,20}:[^/\s:@]{3,20}@.{1,100}["'\s], access_token\$production\$[0-9a-z]{16}\$[0-9a-f]{32}, sklive[0-9a-z]{32}, https://hooks\.slack\.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}, sklive[0-9a-zA-Z]{24}, rklive[0-9a-zA-Z]{24}, sq0atp-[0-9A-Za-z-]{22}, sq0csp-[0-9A-Za-z-]{43}, [0-9]+:AA[0-9A-Za-z-_]{33}, SK[0-9a-fA-F]{32}, [tT][wW][iI][tT][tT][eE][rR].[1-9][0-9]+-[0-9a-zA-Z]{40}, [tT][wW][iI][tT][tT][eE][rR].*['|"][0-9a-zA-Z]{35,44}['|"]]
[info]
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: String!
[info] newMethodName: String!
[info]
[info] org.openrewrite.java.ChangeMethodTargetToStatic
[info] methodPattern: String!
[info] fullyQualifiedTargetTypeName: String!
[info]
[info] org.openrewrite.java.ChangeMethodTargetToVariable
[info] methodPattern: String!
[info] variableName: String!
[info] variableType: String!
[info]
[info] org.openrewrite.java.ChangePackage
[info] oldFullyQualifiedPackageName: String!
[info] newFullyQualifiedPackageName: String!
[info] recursive: boolean
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: String!
[info] newFullyQualifiedTypeName: String!
[info]
[info] org.openrewrite.java.DeleteMethodArgument
[info] methodPattern: String!
[info] argumentIndex: int!
[info]
[info] org.openrewrite.java.OrderImports
[info] removeUnused: boolean
[info]
[info] org.openrewrite.java.RemoveAnnotation
[info] annotationPattern: String!
[info]
[info] org.openrewrite.java.RemoveUnusedImports
[info]
[info] org.openrewrite.java.ReorderMethodArguments
[info] methodPattern: String!
[info] newParameterNames: String[]!
[info] oldParameterNames: String[]
[info]
[info] org.openrewrite.java.UseStaticImport
[info] methodPattern: String!
[info]
[info] org.openrewrite.java.cleanup.CovariantEquals
[info]
[info] org.openrewrite.java.cleanup.FinalizeLocalVariables
[info]
[info] org.openrewrite.java.cleanup.HideUtilityClassConstructor
[info]
[info] org.openrewrite.java.cleanup.SimplifyBooleanExpression
[info]
[info] org.openrewrite.java.cleanup.SimplifyBooleanReturn
[info]
[info] org.openrewrite.java.cleanup.UnnecessaryParentheses
[info]
[info] org.openrewrite.java.example.GenerateGetter
[info] fieldName: String!
[info]
[info] org.openrewrite.java.format.AutoFormat
[info]
[info] org.openrewrite.java.format.BlankLines
[info]
[info] org.openrewrite.java.format.NormalizeFormat
[info]
[info] org.openrewrite.java.format.RemoveTrailingWhitespace
[info]
[info] org.openrewrite.java.format.Spaces
[info]
[info] org.openrewrite.java.format.TabsAndIndents
[info]
[info] org.openrewrite.java.format.WrappingAndBraces
[info]
[info] org.openrewrite.java.migrate.MigrateOpenRewrite6xNames
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.J.Assign
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.J.Assignment
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.J.AssignOp
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.J.AssignmentOperation
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.J.ClassDecl
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.J.ClassDeclaration
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.J.Ident
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.J.Identifier
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.J.MethodDecl
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.J.MethodDeclaration
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.J.VariableDecls
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.J.VariableDeclarations
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.J.VariableDeclarations.NamedVar
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.J.VariableDeclarations.NamedVariable
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.AnnotatedType getTypeExpr(..)
[info] newMethodName: getTypeExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.AnnotatedType withTypeExpr(..)
[info] newMethodName: withTypeExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Annotation getArgs(..)
[info] newMethodName: getArguments
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Annotation withArgs(..)
[info] newMethodName: withArguments
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.CompilationUnit getPackageDecl(..)
[info] newMethodName: getPackageDeclaration
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.CompilationUnit withPackageDecl(..)
[info] newMethodName: withPackageDeclaration
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Identifier getIdent(..)
[info] newMethodName: getTypeInformation
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Identifier withIdent(..)
[info] newMethodName: withTypeInformation
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.InstanceOf getExpr(..)
[info] newMethodName: getExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.InstanceOf withExpr(..)
[info] newMethodName: withExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Lambda.Parameters getParams(..)
[info] newMethodName: getParameters
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Lambda.Parameters withParams(..)
[info] newMethodName: withParameters
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.MethodDeclaration getReturnTypeExpr(..)
[info] newMethodName: getReturnTypeExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.MethodDeclaration withReturnTypeExpr(..)
[info] newMethodName: withReturnTypeExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.MethodDeclaration getParams(..)
[info] newMethodName: getParameters
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.MethodDeclaration withParams(..)
[info] newMethodName: withParameters
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.MethodInvocation getArgs(..)
[info] newMethodName: getArguments
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.MethodInvocation withArgs(..)
[info] newMethodName: withArguments
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.NewArray getTypeExpr(..)
[info] newMethodName: getTypeExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.NewArray withTypeExpr(..)
[info] newMethodName: withTypeExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.NewClass getEncl(..)
[info] newMethodName: getTypeEnclosing
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.NewClass withEncl(..)
[info] newMethodName: withTypeEnclosing
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Package getExpr(..)
[info] newMethodName: getExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Package withExpr(..)
[info] newMethodName: withExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Return getExpr(..)
[info] newMethodName: getExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Return withExpr(..)
[info] newMethodName: withExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Try.Resource getVariableDecls(..)
[info] newMethodName: getVariableDeclarations
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Try.Resource withVariableDecls(..)
[info] newMethodName: withVariableDeclarations
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Try.Catch getParam(..)
[info] newMethodName: getParameter
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.Try.Catch withParam(..)
[info] newMethodName: withParameter
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.TypeCast getExpr(..)
[info] newMethodName: getExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.TypeCast withExpr(..)
[info] newMethodName: withExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.VariableDeclarations getTypeExpr(..)
[info] newMethodName: getTypeExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.VariableDeclarations withTypeExpr(..)
[info] newMethodName: withTypeExpression
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.VariableDeclarations getVars(..)
[info] newMethodName: getVariables
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.J.VariableDeclarations withVars(..)
[info] newMethodName: withVariables
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.Assign
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.Assignment
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.AssignOp
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.AssignmentOperation
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.ClassDecl
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.ClassDeclaration
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.Ident
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.Identifier
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.MethodDecl
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.MethodDeclaration
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.VariableDecls
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.VariableDeclarations
[info]
[info] org.openrewrite.java.ChangeType
[info] oldFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.VariableDeclarations.NamedVar
[info] newFullyQualifiedTypeName: org.openrewrite.java.tree.Coordinates.VariableDeclarations.NamedVariable
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.JavaVisitor visitAssign(..)
[info] newMethodName: visitAssignment
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.JavaVisitor visitAssignOp(..)
[info] newMethodName: visitAssignmentOperation
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.JavaVisitor visitClassDecl(..)
[info] newMethodName: visitClassDeclaration
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.JavaVisitor visitMethod(..)
[info] newMethodName: visitMethodDeclaration
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.JavaVisitor visitMultiVariable(..)
[info] newMethodName: visitVariableDeclarations
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.JRightPadded getElem(..)
[info] newMethodName: getElement
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.JRightPadded withElem(..)
[info] newMethodName: withElement
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.JLeftPadded getElem(..)
[info] newMethodName: getElement
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.JLeftPadded withElem(..)
[info] newMethodName: withElement
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.JContainer getElems(..)
[info] newMethodName: getElements
[info]
[info] org.openrewrite.java.ChangeMethodName
[info] methodPattern: org.openrewrite.java.tree.JContainer withElems(..)
[info] newMethodName: withElements
[info]
[info]
[info] org.openrewrite.java.search.FindAnnotations
[info] annotationPattern: String!
[info]
[info] org.openrewrite.java.search.FindFields
[info] fullyQualifiedTypeName: String!
[info]
[info] org.openrewrite.java.search.FindMethods
[info] methodPattern: String!
[info]
[info] org.openrewrite.java.search.FindText
[info] patterns: List!
[info]
[info] org.openrewrite.java.search.FindTypes
[info] fullyQualifiedTypeName: String!
[info]
[info] org.openrewrite.maven.AddDependency
[info] groupId: String!
[info] artifactId: String!
[info] version: String!
[info] versionPattern: String
[info] releasesOnly: boolean
[info] classifier: String
[info] scope: String
[info] type: String
[info] familyPattern: String
[info] onlyIfUsing: List
[info]
[info] org.openrewrite.maven.AddPlugin
[info] groupId: String!
[info] artifactId: String!
[info] version: String!
[info]
[info] org.openrewrite.maven.ChangeDependencyScope
[info] groupId: String!
[info] artifactId: String!
[info] newScope: String
[info]
[info] org.openrewrite.maven.ChangePropertyValue
[info] key: String!
[info] newValue: String!
[info]
[info] org.openrewrite.maven.ExcludeDependency
[info] groupId: String!
[info] artifactId: String!
[info]
[info] org.openrewrite.maven.ManageDependencies
[info] groupPattern: String!
[info] artifactPattern: String
[info] version: String
[info]
[info] org.openrewrite.maven.RemoveDependency
[info] groupId: String!
[info] artifactId: String!
[info] scope: String
[info]
[info] org.openrewrite.maven.RemoveProperty
[info] propertyName: String!
[info]
[info] org.openrewrite.maven.RemoveRedundantDependencyVersions
[info]
[info] org.openrewrite.maven.UpgradeDependencyVersion
[info] groupId: String!
[info] artifactId: String!
[info] newVersion: String!
[info] versionPattern: String
[info]
[info] org.openrewrite.maven.UpgradeParentVersion
[info] groupId: String!
[info] artifactId: String!
[info] newVersion: String!
[info] versionPattern: String
[info]
[info] org.openrewrite.maven.search.DependencyInsight
[info] groupIdPattern: String!
[info] artifactIdPattern: String!
[info] scope: String!
[info]
[info] org.openrewrite.maven.search.FindDependency
[info] groupId: String!
[info] artifactId: String!
[info]
[info] org.openrewrite.maven.search.FindProperties
[info] propertyPattern: String!
[info]
[info] org.openrewrite.properties.ChangePropertyKey
[info] oldPropertyKey: String!
[info] newPropertyKey: String!
[info]
[info] org.openrewrite.properties.ChangePropertyValue
[info] propertyKey: String!
[info] newValue: String!
[info]
[info] org.openrewrite.properties.search.FindProperties
[info] propertyKey: String!
[info]
[info] org.openrewrite.text.ChangeText
[info] toText: String!
[info]
[info] org.openrewrite.xml.AutoFormat
[info]
[info] org.openrewrite.xml.search.FindTags
[info] xPath: String!
[info]
[info] org.openrewrite.yaml.ChangePropertyKey
[info] oldPropertyKey: String!
[info] newPropertyKey: String!
[info]
[info] org.openrewrite.yaml.CoalesceProperties
[info]
[info] com.myProject.RemoveAnnotations
[info]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.650 s
[INFO] Finished at: 2021-03-29T10:08:31+03:00
[INFO] ------------------------------------------------------------------------
Process finished with exit code 0
Hi @bondarbd. Based on the error you're getting, I think there might be versions of rewrite jars on the plugin classpath other than those expected by rewrite-maven-plugin. Could you run mvn -X rewrite:discover
? That outputs a long tree of plugin dependencies for the rewrite-maven-plugin discover task that starts out like this :
[INFO] --- rewrite-maven-plugin:3.0.0:discover (default-cli) @ spring-petclinic ---
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1095413, ConflictMarker.markTime=411487, ConflictMarker.nodeCount=233, ConflictIdSorter.graphTime=681708, ConflictIdSorter.topsortTime=436866, ConflictIdSorter.conflictIdCount=93, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=7000911, ConflictResolver.conflictItemCount=216, DefaultDependencyCollector.collectTime=238446198, DefaultDependencyCollector.transformTime=11187593}
[DEBUG] org.openrewrite.maven:rewrite-maven-plugin:jar:3.0.0
[DEBUG] org.openrewrite:rewrite-java:jar:7.0.1:compile
[DEBUG] org.openrewrite:rewrite-core:jar:7.0.1:compile
[DEBUG] com.fasterxml.jackson.core:jackson-databind:jar:2.12.2:compile
[DEBUG] com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.12.2:compile
[DEBUG] com.fasterxml.jackson.module:jackson-module-kotlin:jar:2.12.2:compile
[DEBUG] org.jetbrains.kotlin:kotlin-reflect:jar:1.4.21:compile
[DEBUG] org.jetbrains:annotations:jar:20.1.0:compile
Could you share the plugin dependency output for your build?
Hey @bondarbd, checking in, do you have updates? If not, sometime within the next few days I'll close this out 👍
I'm going to go ahead and close this out, but @bondarbd try this out with the latest versions of the rewrite plugins. If issues come up again please feel free to open another issue 👍
Failed to execute goal org.openrewrite.maven:rewrite-maven-plugin:3.0.0:fix (default-cli) on project DAS_model: Execution default-cli of goal org.openrewrite.maven:rewrite-maven-plugin:3.0.0:fix failed: Recipes not found: rg.openwrite.java.RemoveAnnotation