小编Aus*_*Gwa的帖子

使用maven 3.8.5在intellij Idea中导入Springboot 2.7项目时出错

当使用 springboot 2.7 生成的 start.spring.io 项目时,它附带 MavenProject 3.8.5,当导入 intellij 时,会导致一个非常难以调试或不自言自语的错误。

错误

java.lang.RuntimeException: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com.google.inject.ProvisionException: Unable to provision, see the following errors:

1) Error injecting constructor, java.lang.NoSuchMethodError: org.apache.maven.model.validation.DefaultModelValidator: method 'void <init>()' not found
  at org.jetbrains.idea.maven.server.embedder.CustomModelValidator.<init>(Unknown Source)
  while locating org.jetbrains.idea.maven.server.embedder.CustomModelValidator
  at ClassRealm[maven.ext, parent: ClassRealm[plexus.core, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
  while locating org.apache.maven.model.validation.ModelValidator annotated with @com.google.inject.name.Named(value="ide")

1 error
      role: org.apache.maven.model.validation.ModelValidator
  roleHint: ide
Run Code Online (Sandbox Code Playgroud)

java spring intellij-idea maven spring-boot

23
推荐指数
3
解决办法
3万
查看次数

标签 统计

intellij-idea ×1

java ×1

maven ×1

spring ×1

spring-boot ×1