【问题标题】:importing maven project with m2e ignores active profile使用 m2e 导入 maven 项目会忽略活动配置文件
【发布时间】:2014-04-30 14:41:52
【问题描述】:

我在我的 POM 中定义了一个配置文件。现在我想用 m2e 导入这个项目。当我这样做时,默认配置文件将被忽略。另一方面,如果我在导入哪些配置文件应该处于活动状态(导入 Maven 项目 > 高级)之前明确设置了配置文件,那么项目将使用正确的配置文件导入。

为什么使用 m2e 导入时会忽略配置文件?如果 maven 可以在命令行上确定正确的配置文件,为什么它不能用 M2E 这样做?

    <profiles>
    <profile>
        <id>important-profile</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
                    <build>
                    ... important stuff ...

【问题讨论】:

    标签: eclipse maven m2eclipse m2e


    【解决方案1】:

    考虑在m2eclipse - Support 打开一个问题,因为它是free software

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-25
      • 2011-09-12
      • 2013-07-14
      • 1970-01-01
      相关资源
      最近更新 更多