Domanda

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 ...
È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top