An internal error occurred during: “Updating Maven Project”. java.lang.NullPointerException

后端 未结 20 1037
小鲜肉
小鲜肉 2020-12-12 16:55

I\'m developing a Java EE web project. When I try to add a dependency, this error message appears. I use Eclipse Kepler.

An internal error occurred du

20条回答
  •  青春惊慌失措
    2020-12-12 17:40

    In our instance of this problem, we had pom.xml files where the m2e-specific life cycle mapping configuration

    
        
            
                org.eclipse.m2e
                lifecycle-mapping
                1.0.0
                
                    
    ...
    

    did not have the 1.0.0 part. When doing a Maven -> Update Project..., this causes the reported NullPointerException without a stack trace. When using a fresh Import... -> Existing Maven Projects, the same exception occurred, but with a stack trace that led me to find the above.

    (This is with m2e 1.6.1.20150625-2338 in Eclipse Luna Service Release 2 (4.4.2).)

提交回复
热议问题