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

running 'mvn process-resources' on the module A project is already enough, but still a bit of a harsh solution. It would require running a process-resources on all dependent projects.

Another option can be dependencies between run configurations, see

Currently I don't really see a right way to do this.

On 02/14/2011 04:05 PM, Igor Fedorenko wrote:
Based on the sample project I got, this scenario is not currently
supported and most likely won't be.

The only way to make this work is to run "clean compile" on the entire
source tree and I simply do not see a good way to do this. Of course, I
am open for suggestions ;-).


On 11-02-11 10:06 AM, Ronald Spierenburg wrote:
Hi Daniel,

The right profile is active, i've doublechecked it using
help:active-profiles, that's not the problem.

Eclipse doesn't process the resource of the dependencies (that are on
the classpath using the m2eclipse workspace resolution).


On 02/11/2011 03:57 PM, Daniel Johnson wrote:
Hey Mr. Spierenburg,

From 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.
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
mvn ... -P !development

Hope this helps,
Daniel Johnson

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


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 ?


Ronald Spierenburg
m2e-users mailing list

m2e-users mailing list
m2e-users mailing list

Back to the top