質問

I have defined a profile in my POM. Now I want to import this project with 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.

Why is the profile is ignored when importing with m2e? If maven can determine the correct profile on command line why can't it do so with M2E?

    <profiles>
    <profile>
        <id>important-profile</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
                    <build>
                    ... important stuff ...
役に立ちましたか?

解決

Consider opening an issue at m2eclipse - Support because it is free software.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top