Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] How to tell m2e to update a particular folder (or at least: "target" folder) after <pluginExecution>?

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


Back to the top