Question

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 ...
Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top