Where should I put application configuration files for a Maven project?

前端 未结 5 939
执念已碎
执念已碎 2020-12-30 10:38

I\'m using the Maven Application Assembler plugin to generate stand-alone executables from my Java project. The application reads in configuration files, including Spring fi

5条回答
  •  悲哀的现实
    2020-12-30 11:02

    For folks who have come to this more recently there is, since version 1.1 of the Application Assembler Plugin, the optional parameters configurationSourceDirectory and copyConfigurationDirectory. Please find them in an example POM.xml extract below:

    
      
      conf
      
      true
      
      
        true
      
    ...
    
    

    More information is here

提交回复
热议问题