Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有 2 个用于 WAR 应用程序的 Maven 配置文件,如下所示:
mvn clean install -Pdevelopment mvn clean install -Pproduction
我将它导入 Eclipse 以在 Tomcat 中运行,我如何告诉 Tomcat 使用一个配置文件或另一个?
您可以使用以下步骤激活maven profileat :-Eclipse
maven profile
Eclipse
Right click
properties
Properties windows
Maven
right hand panel
Active Maven Profiles
profile name
development
production
我希望这可能会有所帮助。