Dave,
 
thank you for sharing this idea. In fact, this sounds promising. So I only need to find out how to tell Eclipse that it shall run that configuration each time I press “CTRL-S”. J
 
Thanks!
Markus
 
Von: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] Im Auftrag von Dave Hartnoll
Gesendet: Mittwoch, 11. Juli 2012 11:24
An: Maven Integration for Eclipse users mailing list
Betreff: Re: [m2e-users] How to tell m2e to update a particular folder (or at least: "target" folder) after <pluginExecution>?
 
Hi Markus,
 
I’m not sure if this will help, but if you are only concerned with not having to press F5 after Maven has run then you could set up a Run Configuration (Run->Run Configurations…) to process the Maven build. The ‘Maven Build’ configuration type has a ‘Refresh’ tab where you can control what gets refreshed afterwards.
 
Dave.
 
 
 
Hello m2e Community!
 
My pom.xml enables execution of the xml-maven-plugin (and enables generated-sources as a target folder using the build-helper-plugin):
 
                                  <configuration>
                                        <lifecycleMappingMetadata>
                                               <pluginExecutions>
                                                      <pluginExecution>
                                                            <pluginExecutionFilter>
                                                                   <groupId>org.codehaus.mojo</groupId>
                                                                   <artifactId>xml-maven-plugin</artifactId>
                                                                   <versionRange>[1.0,)</versionRange>
                                                                   <goals>
                                                                          <goal>transform</goal>
                                                                   </goals>
                                                            </pluginExecutionFilter>
                                                            <action>
                                                                   <execute />
                                                            </action>
                                                      </pluginExecution>
                                               </pluginExecutions>
                                        </lifecycleMappingMetadata>
                                  </configuration>
 
After pressing F5 I can see the generated outcome in Eclipse Indigo. Nice! J
 
But I don’t want to press F5! So how to tell m2e that after <execute /> of the plugin, it also shall <refresh /> the generated-sources folder in the IDE?
 
Thanks!
Markus