Different files to be packaged in a Maven war project

前端 未结 2 1719
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-06 14:00

I have a war packaging Maven project, in which I have a Java properties files called myapp.properties. In this properties file, I store some parameters, for example, databas

2条回答
  •  没有蜡笔的小新
    2021-01-06 14:12

    You can have a look at this blog: http://blog.jayway.com/2010/01/21/one-artifact-with-multiple-configurations-in-maven/

    They build different war-files and use different classifier (instead of different profiles). I am not sure if it is the maven way, but it works for some of my projects.

提交回复
热议问题