Eclipse showing “Maven Configuration Problem: Unknown”

后端 未结 9 1878
既然无缘
既然无缘 2020-12-08 06:11

I just imported a spingboot project that I created in https://start.spring.io/ in eclipse. I tried to import two times, but the problem persists. Already tried to do a mvn u

9条回答
  •  庸人自扰
    2020-12-08 06:45

    This seems like a bug in eclipse: https://bugs.eclipse.org/bugs/show_bug.cgi?id=547340

    You can fix this by temporary downgrading the maven jar plugin version to 3.1.1 from 3.1.2. Add this to the properties section:

    3.1.1
    

    So your pom will look like this:

    
    
    4.0.0
    
        org.springframework.boot
        spring-boot-starter-parent
        2.1.5.RELEASE
         
    
    com.in28minutes.springboot.rest.example
    spring-boot-2-jpa-with-hibernate-and-h2
    0.0.1-SNAPSHOT
    spring-boot-2-jpa-with-hibernate-and-h2
    Demo project for Spring Boot
    
    
        11
        3.1.1
    
    
    
        
            org.springframework.boot
            spring-boot-starter-data-jpa
        
        
            org.springframework.boot
            spring-boot-starter-web
        
    
        
            org.springframework.boot
            spring-boot-devtools
            runtime
        
        
            com.h2database
            h2
            runtime
        
        
            org.projectlombok
            lombok
            true
        
        
            org.springframework.boot
            spring-boot-starter-test
            test
        
    
    
    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
    
    
    

    Update: A fix has been released. Click Help > Check for updates in Eclipse/STS and install the newest m2e connector.

提交回复
热议问题