In maven how can I include non-java src files in the same place in the output jar?

后端 未结 3 1814
时光取名叫无心
时光取名叫无心 2020-12-01 15:18

I received a source code bundle. Inside the src directory tree there are some properties files(.properties) which I want to keep in the output jar in the same place. e.g: I

3条回答
  •  -上瘾入骨i
    2020-12-01 16:10

    You could add the following in your pom indicating that the resources are available in src/main/java and including the type of resources.

    
        
            
                src/main/java
                
                    **/*.properties
                
            
        
    
    

提交回复
热议问题