springboot1.5和springcloud pom.xml推荐配置

说明

以下是我常用的springboot与springcloud集成的公共pom.xml文件。

具体配置



    4.0.0

    com.gwl
    project_name
    ${project_version}
    jar

    project_name
    Demo project for Spring Boot

    
        org.springframework.boot
        spring-boot-starter-parent
        1.5.12.RELEASE
         
    

    
        1.0.0
        1.8
        
        5.6.3
        1.2.51
        3.1
        1.16.20
        1.3.1
        
        UTF-8
        UTF-8
        ${java.version}
        ${java.version}
        ${java.version}
        Edgware.SR3
       
    

    

        
        
            org.springframework.boot
            spring-boot-starter-test
            test
        
        
        
            org.springframework.cloud
            spring-cloud-starter-eureka
        
        
        
            org.springframework.boot
            spring-boot-starter-web
        
        
        
            org.springframework.boot
            spring-boot-starter-thymeleaf
        
        
            org.thymeleaf.extras
            thymeleaf-extras-springsecurity4
        
        
        
            net.sourceforge.nekohtml
            nekohtml
            1.9.15
        
        
        
            org.springframework.boot
            spring-boot-starter-actuator
        
        
        
            org.springframework.boot
            spring-boot-starter-security
        
        
        
            org.springframework.boot
            spring-boot-starter-data-jpa
        
        
            mysql
            mysql-connector-java
        
        
        
            com.alibaba
            druid
            1.0.27
        

        
        
            org.springframework.cloud
            spring-cloud-starter-feign
        
        
            org.springframework.cloud
            spring-cloud-starter-hystrix
        

        
        
        
        
        


        
        
            io.springfox
            springfox-swagger2
            2.7.0
        
        
            io.springfox
            springfox-swagger-ui
            2.7.0
        

        
            org.springframework.boot
            spring-boot-configuration-processor
            true
        

        
        
            org.springframework.boot
            spring-boot-starter-cache
        
        
            org.springframework.boot
            spring-boot-starter-data-redis
        
        
        
            org.elasticsearch
            elasticsearch
            ${elasticsearch.version}
        

        
            org.elasticsearch.client
            transport
            ${elasticsearch.version}
        

        
        
            org.apache.logging.log4j
            log4j-core
            2.7
        

        
        
            org.projectlombok
            lombok
            1.16.20
            provided
        
        
            org.slf4j
            slf4j-api
            1.7.21
        
        
            com.alibaba
            fastjson
            1.2.31
        
        
            com.thoughtworks.xstream
            xstream
            1.4.10
        
        
            org.apache.commons
            commons-lang3
            3.4
        
        
            org.apache.httpcomponents
            httpclient
            4.3.6
        
        
            org.apache.httpcomponents
            httpcore
            4.3.3
        
        
            org.springframework
            spring-context
            4.2.5.RELEASE
        

        
            jaxen
            jaxen
            1.1.6
        
        
        
            com.thoughtworks.xstream
            xstream
            1.4.10
        
        


    

    
        
            
                org.springframework.cloud
                spring-cloud-dependencies
                ${spring-cloud.version}
                pom
                import
            
        
    

    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
            
            
            
                org.apache.maven.plugins
                maven-surefire-plugin
                
                    true
                
            
            
            
                com.spotify
                docker-maven-plugin
                0.4.13
                
                    media/${project.artifactId}:${project.version}
                    true
                    java:8
                    ["java", "-jar", "/${project.build.finalName}.jar"]
                    
                        
                            /
                            ${project.build.directory}
                            ${project.build.finalName}.jar
                        
                    
                
            
        
    

    
    
        
            public
            Team Maven Repository
            http://maven.aliyun.com/nexus/content/groups/public
            
                true
            
            
                true
            
        
    


更多,请关注:
springboot 技术实践总结

你可能感兴趣的:(springboot1.5和springcloud pom.xml推荐配置)