Juan Hernandez has uploaded a new change for review.

Change subject: core: Ignore maven-ear-plugin in Eclipse
......................................................................

core: Ignore maven-ear-plugin in Eclipse

Eclipse doesn't have support for most of the parameters of the
maven-ear-plugin, so in order to import the project without errors we
need to ignore the execution of the generate-application-xml goal.

Change-Id: I196ae0fd10615e8576a6fa3abc3dfcbc2a530e86
Signed-off-by: Juan Hernandez <[email protected]>
---
M ear/pom.xml
1 file changed, 27 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/58/11258/1

diff --git a/ear/pom.xml b/ear/pom.xml
index d66753b..d294a38 100644
--- a/ear/pom.xml
+++ b/ear/pom.xml
@@ -275,6 +275,33 @@
         </configuration>
       </plugin>
 
+      <!-- We need to ignore the execution of the maven-ear-plugin when
+           running inside Eclipse, as there is no Eclipse plugin supporting
+           most of the parameters that we use and this generates an error
+           when importing the project: -->
+      <plugin>
+        <groupId>org.eclipse.m2e</groupId>
+        <artifactId>lifecycle-mapping</artifactId>
+        <version>1.0.0</artifactId>
+        <configuration>
+          <lifecycleMappingMetadata>
+            <pluginExecutions>
+              <pluginExecution>
+                <pluginExecutionFilter>
+                  <artifactId>maven-ear-plugin</artifactId>
+                  <goals>
+                    <goal>generate-application-xml</goal>
+                  </goals>
+                </pluginExecutionFilter>
+                <action>
+                  <ignore/>
+                </action>
+              </pluginExecution>
+            </pluginExecutions>
+          </lifecycleMappingMetadata>
+        </configuration>
+      </plugin>
+
       <plugin>
         <artifactId>maven-dependency-plugin</artifactId>
         <executions>


--
To view, visit http://gerrit.ovirt.org/11258
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I196ae0fd10615e8576a6fa3abc3dfcbc2a530e86
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to