Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Resource filtering from run configuration in parent project

Hey Mr. Spierenburg,

From http://maven.apache.org/guides/introduction/introduction-to-profiles.html regarding a profile that is activeByDefault...
"...will automatically be active for all builds unless another profile in the same POM is activated using one of the previously described methods. All profiles that are active by default are automatically deactivated when a profile in the POM is activated on the command line or through its activation config."
You can use the help:active-profiles section to help figure out which profiles are/aren't active. http://maven.apache.org/guides/introduction/introduction-to-profiles.html#How_can_I_tell_which_profiles_are_in_effect_during_a_build
If your production profile really is getting activated, than your development profile should be de-activated automatically. However, you can always deactivate a profile though the command line http://maven.apache.org/guides/introduction/introduction-to-profiles.html#Deactivating_a_profile
mvn ... -P !development

Hope this helps,
Daniel Johnson

On Feb 11, 2011, at 2:11 AM, Ronald Spierenburg wrote:

Hello,

I'm using eclipse helios with m2eclipse 0.10 and have the following project structure

* parent
   * module A
   * module B


The parent pom contains my profile with all the application settings ('development' and 'production'). The 'development' profile is active by default.

Module A contains the resources that need to be filtered (logging, database settings, etc)

Module B contains a jetty:run configuration.

Now i've setup an eclipse run configuration with start the goal jetty:run in the module B eclipse project. When i specify a profile for this run configuration ('production') the resources in module A don't get filtered again. So the 'development' profile is still the last profile used for filtering the resources.

Is there a way of telling m2eclipse to filter the resources of module A again when starting the run configuration for module B ?

Thanks,

Ronald Spierenburg
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top