maven 让spring resource下META-INF下文件打包到META-INF下

maven 让spring resource下META-INF下文件打包到META-INF下_第1张图片

maven 让spring resource下META-INF下文件打包到META-INF下_第2张图片

 

 

 

 

pom.xml buid 部分内容。

    test
    
        
            org.apache.maven.plugins
            maven-compiler-plugin
            3.1
            
                1.8
                1.8
            
        
       
        
            org.apache.maven.plugins
            maven-jar-plugin
            
                
                    false
                
            
        

    



自己项目pom 全文。


    4.0.0

    com.demo
    demo
    1.0.0.RELEASE

    
        1.8
        7.4.0
    

    
        
            org.slf4j
            slf4j-api
            1.7.25
        
        
            org.springframework.boot
            spring-boot-devtools
            2.0.1.RELEASE
            true
        

        
            org.elasticsearch.client
            elasticsearch-rest-high-level-client
            ${es.verison}
        

        
            com.alibaba
            fastjson
            1.2.60
        

        
            org.apache.commons
            commons-lang3
            3.4
        

        
            org.projectlombok
            lombok
            1.18.4
            provided
        
        
            org.springframework
            spring-tx
            RELEASE
            compile
        

    

    
        ${project.artifactId}
        
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.1
                
                    ${java.version}
                    ${java.version}
                
            
            
                org.apache.maven.plugins
                maven-jar-plugin
                
                    
                        false
                    
                
            
            
            
                maven-source-plugin
                2.1
                
                    true
                
                
                    
                        compile
                        
                            jar
                        
                    
                
            

        

    





spring.factories文件

spring autoconfig

# AutoConfiguration
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\com.xx.xx.ElasticSearchConfig
@Configuration
@EnableTransactionManagement
@ConditionalOnProperty(name = "elasticsearch.enable", havingValue = "true")
public class ElasticSearchConfig {}

 

你可能感兴趣的:(java,maven,spring,jar,meta)