當使用 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
uj5u.com熱心網友回復:
這應該已經在 2022.1 中修復在這個 bug的范圍內
請更新您的 IDE
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/493520.html
