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

后端 未结 3 1829
时光取名叫无心
时光取名叫无心 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条回答
  •  忘掉有多难
    2020-12-01 16:01

    With this pom fragment you include anything that is not a java file for both main and test artifact:

    
        
            
                src/main/java
                
                    **/*.java
                
            
        
        
            
                src/test/java
                
                    **/*.java
                
            
        
    
    

提交回复
热议问题