gpt4 book ai didi

eclipse - Maven:在 Eclipse 中为多个配置文件运行构建

转载 作者:行者123 更新时间:2023-12-03 17:31:34 32 4
gpt4 key购买 nike

假设我们在 Eclipse 中有一个 Maven 项目。
pom.xml 有两个配置文件。

问题是:如何在 Eclipse 中运行 maven 以便为每个配置文件执行每个目标?

我试过了:

  • 在 Properties/Maven 中设置事件的 Maven 配置文件 -> 不起作用
  • 使用以下命令运行 maven:clean install -Pprofile1 -Pprofile2 -> 不起作用
  • 使用以下命令运行 maven:clean install -P profile1,profile2 -> 不起作用
  • 在“目标”下运行 maven 设置“配置文件”(配置文件 1,配置文件 2)-> 不起作用

  • 我希望 maven 为两个配置文件运行,执行 pom.xml 中的所有任务

    谢谢。

    最佳答案

    这是你如何做到的
    Eclipse Config

    关于eclipse - Maven:在 Eclipse 中为多个配置文件运行构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53003390/

    32 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com