diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-10-29 22:22:59 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-10-29 22:42:11 +0900 |
commit | 0d5090acb35cf551a4d0b68b03facc3648177413 (patch) | |
tree | d3f715cd07bbac28bce6e18dd92162d901fd6a08 /gerrit-plugin-gwtui | |
parent | 63fe5b9f0b53e60e0a33cafe079fad36e9f4d38b (diff) |
gerrit-plugin-gwtui/gerrit-war: Enable lifecycle plugin in pom.xml
Due to changes in the m2e Eclipse plugin for Indigo (3.7), plugin
execution no longer happens directly, but rather must be configured
through m2e's lifecycle-mapping plugin.
In order for a plugin to be invoked within Eclipse, a pluginExecution
must be defined in the lifecycle-mapping plugin corresponding to the
execution tag in the plugin definition itself.
To achieve this, a new section is added in the build section of the
POM files.
See http://goo.gl/2WCNW for details.
Change-Id: Id37cd53bea434cb9ecf8f509de8da558516e8303
Diffstat (limited to 'gerrit-plugin-gwtui')
-rw-r--r-- | gerrit-plugin-gwtui/pom.xml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gerrit-plugin-gwtui/pom.xml b/gerrit-plugin-gwtui/pom.xml index aa6ba8f577..f5df326732 100644 --- a/gerrit-plugin-gwtui/pom.xml +++ b/gerrit-plugin-gwtui/pom.xml @@ -45,6 +45,50 @@ limitations under the License. </dependencies> <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.eclipse.m2e</groupId> + <artifactId>lifecycle-mapping</artifactId> + <version>1.0.0</version> + <configuration> + <lifecycleMappingMetadata> + <pluginExecutions> + <pluginExecution> + <pluginExecutionFilter> + <groupId>org.codehaus.mojo</groupId> + <artifactId>gwt-maven-plugin</artifactId> + <versionRange>[2.4.0,)</versionRange> + <goals> + <goal>resources</goal> + <goal>compile</goal> + <goal>i18n</goal> + <goal>generateAsync</goal> + </goals> + </pluginExecutionFilter> + <action> + <execute /> + </action> + </pluginExecution> + <pluginExecution> + <pluginExecutionFilter> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-war-plugin</artifactId> + <versionRange>[2.1.1,)</versionRange> + <goals> + <goal>exploded</goal> + </goals> + </pluginExecutionFilter> + <action> + <execute /> + </action> + </pluginExecution> + </pluginExecutions> + </lifecycleMappingMetadata> + </configuration> + </plugin> + </plugins> + </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> |