Maven: missing artifact org.springframework:spring:jar:4.2.6

前端 未结 6 682
栀梦
栀梦 2021-02-08 09:10

I have a dynamic web project in SpringToolSuite. It is converted into a Maven project.

I am getting the issue:

Mising artifact org.springframew

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-08 09:39

    I'm quite sure there is no artifact called "spring"

    
        org.springframework
        spring           
        4.2.6
    
    

    Depending on the Spring components you need, you should basically include these dependencies:

        
            org.springframework
            spring-context
            4.2.6.RELEASE
        
        
            org.springframework
            spring-core
            4.2.6.RELEASE
        
    

    In my Spring project, I include the Spring artifacts via a BOM (Bill of Materials):

    
        4.2.6.RELEASE
    
    
    
        
            
                org.springframework
                spring-framework-bom
                ${spring.version}
                pom
                import
            
        
    
    
    
        
            org.springframework
            spring-context
        
        
            org.springframework
            spring-core
        
        
            org.springframework
            spring-web
        
        
            org.springframework
            spring-webmvc
        
        
            org.springframework
            spring-aspects
        
    
    
    

提交回复
热议问题