Specify common resources in a multi-module maven project

前端 未结 6 1321
忘掉有多难
忘掉有多难 2020-12-09 15:00

Is there any way to share resources between modules of a parent project in Maven? For example, I would like to specify one log4j.properties file for all the modules in a mul

6条回答
  •  长情又很酷
    2020-12-09 15:57

    Antoher possibility is to use a remote resource bundle. You would be able to configure it in the parent project. In this example I wanted to copy some files just for tests. If you use this you will need to create the bundle in another project.

              
            org.apache.maven.plugins         
            maven-remote-resources-plugin
            1.5
            
                
                    es.sca:myBundle:1.0.0
                
                false
                true
                ${basedir}/src/test/resources
                        
            
                
                    
                        process
                    
                
                               
                         
    

提交回复
热议问题