[英]importing maven project with m2e ignores active profile
I have defined a profile in my POM. 我在POM中定义了一个配置文件。 Now I want to import this project with m2e.
现在,我想使用m2e导入该项目。 When I do so the default profile is ignored.
这样做时,默认配置文件将被忽略。 On the other hand If I set the profile explicitly before import which profiles should be active (Import Maven Project > Advanced) then the project is imported with the correct profile.
另一方面,如果我在导入之前显式设置了配置文件,则哪些配置文件应处于活动状态(“导入Maven项目”>“高级”),则将使用正确的配置文件导入项目。
Why is the profile is ignored when importing with m2e? 为什么使用m2e导入时忽略配置文件? If maven can determine the correct profile on command line why can't it do so with M2E?
如果maven可以在命令行上确定正确的配置文件,为什么不能使用M2E呢?
<profiles>
<profile>
<id>important-profile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
... important stuff ...
请考虑在m2eclipse-Support上打开问题,因为它是免费软件 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.