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

后端 未结 20 999
小鲜肉
小鲜肉 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:24

    Just another possible source of the problem!

    I found out that in my case it was the following resource block that caused it:

    
        
            
                
                    ${basedir}/../some-folder
                    outputFolder
                
            
        
    
    

    It included a folder from the project folder (the eclipse project is a subfolder of the versioned project folder).

    In my case, I could remove the error by removing the block and replacing it with a call to the Build helper Maven plugin:

    
        
            
                org.codehaus.mojo
                build-helper-maven-plugin
                1.9.1
                
                    
                        my-own-very-cool-id-for-this-step
                        generate-resources
                        
                            add-resource
                        
                        
                            
                                
                                    ${basedir}/../some-folder
                                    outputFolder
                                
                            
                        
                    
                
            
        
    
    

提交回复
热议问题