Community
Participate
Working Groups
Build Identifier: 20110615-0604 In a project where a resource file is filtered, the generated file from a build with active profiles seems to be replaced when I open it through the Project Explorer. The result is that filtered values use the default values instead of the ones defined by a profile used in the original build. Reproducible: Always Steps to Reproduce: 1. Import the attached project (lab-r3) 2. Build the project with the "production" profile 3. From the CLI, check the target/classes/log4j.properties file content. E.g., the rootCategory should have "ERROR" level. 4. In Eclipse, using the Project Explorer, open the same file. You'll see that the content has now changed and the rootCategory is "DEBUG".
Created attachment 203574 [details] Test project to reproduce
This behaviour is expected. m2e keeps filtered resources up-to-date with resources in their source location and regenerates filtered resources whenever it detects the two got out of sync. In your case this happens when filtered resources is opened in the editor and auto-refreshed from local filesystem as a result. Enabled desire profiles in project properties to make m2e produce expected filtered resources.
Ok. Thanks for clarifying.
Moved to https://github.com/eclipse-m2e/m2e-core/issues/