问题:
2022-05-06 09:19:30,794 [ 39860] INFO - #org.jetbrains.idea.maven - tried to access method org.apache.maven.model.interpolation.StringSearchModelInterpolator.interpolateObject(Ljava/lang/Object;Lorg/apache/maven/model/Model;Ljava/io/File;Lorg/apache/maven/model/building/ModelBuildingRequest;Lorg/apache/maven/model/building/ModelProblemCollector;)V from class org.jetbrains.idea.maven.server.embedder.CustomMaven3ModelInterpolator2
java.lang.IllegalAccessError: tried to access method org.apache.maven.model.interpolation.StringSearchModelInterpolator.interpolateObject(Ljava/lang/Object;Lorg/apache/maven/model/Model;Ljava/io/File;Lorg/apache/maven/model/building/ModelBuildingRequest;Lorg/apache/maven/model/building/ModelProblemCollector;)V from class org.jetbrains.idea.maven.server.embedder.CustomMaven3ModelInterpolator2
at org.jetbrains.idea.maven.server.embedder.CustomMaven3ModelInterpolator2.interpolateObject(CustomMaven3ModelInterpolator2.java:49)
at org.jetbrains.idea.maven.server.embedder.CustomModelValidator.validateRawModel(CustomModelValidator.java:49)
at org.apache.maven.model.building.DefaultModelBuilder.readModel(DefaultModelBuilder.java:623)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:281)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:448)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:414)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:377)
at org.jetbrains.idea.maven.server.Maven3ServerEmbedder.getProjectBuildingResults(Maven3ServerEmbedder.java:166)
at org.jetbrains.idea.maven.server.Maven3XServerEmbedder$3.run(Maven3XServerEmbedder.java:682)
at org.jetbrains.idea.maven.server.Maven3ServerEmbedder.executeWithSessionScope(Maven3ServerEmbedder.java:399)
at org.jetbrains.idea.maven.server.Maven3ServerEmbedder.executeWithMavenSession(Maven3ServerEmbedder.java:342)
at org.jetbrains.idea.maven.server.Maven3XServerEmbedder.doResolveProject(Maven3XServerEmbedder.java:663)
at org.jetbrains.idea.maven.server.Maven3XServerEmbedder.resolveProject(Maven3XServerEmbedder.java:625)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
方案:
切换Maven版本为3.6.0
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)