Roy Golan has uploaded a new change for review.

Change subject: core: integrate make into maven
......................................................................

core: integrate make into maven

mvn install -Pmake -Ddevenv.prefix=my-prefix

will actually run maven and deploy the artifact to prefix

Change-Id: I8981f04b26a2d36429f8bfccaada8dfbadfbf9c3
Signed-off-by: Roy Golan <rgo...@redhat.com>
---
A mavenmake/pom.xml
M pom.xml
2 files changed, 54 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/29/27229/1

diff --git a/mavenmake/pom.xml b/mavenmake/pom.xml
new file mode 100644
index 0000000..3245a92
--- /dev/null
+++ b/mavenmake/pom.xml
@@ -0,0 +1,53 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.ovirt.engine</groupId>
+        <artifactId>root</artifactId>
+        <version>3.5.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>make</artifactId>
+    <packaging>pom</packaging>
+
+    <name>ovirt-engine maven make</name>
+    <description>ovirt-engine maven make wrapper</description>
+
+    <properties>
+        <devenv.prefix>${env.PREFIX}</devenv.prefix>
+    </properties>
+
+    <profiles>
+        <profile>
+            <id>make</id>
+        </profile>
+    </profiles>
+    <build>
+
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>exec-maven-plugin</artifactId>
+                <version>1.2.1</version>
+                <executions>
+                    <execution>
+                        <phase>install</phase>
+                        <goals>
+                            <goal>exec</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <executable>make</executable>
+                    <!-- for some reason it refuses to work with argument -C 
${project.parent.basedir} -->
+                    
<workingDirectory>${project.parent.basedir}</workingDirectory>
+                    <arguments>
+                        <argument>install-dev</argument>
+                        <argument>PREFIX=${devenv.prefix}</argument>
+                        <argument>DEV_REBUILD=0</argument>
+                    </arguments>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git a/pom.xml b/pom.xml
index 3a520b8..f8d7b6d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,6 +29,7 @@
     <module>backend</module>
     <module>frontend</module>
     <module>ear</module>
+    <module>mavenmake</module>
   </modules>
 
   <properties>


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8981f04b26a2d36429f8bfccaada8dfbadfbf9c3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4
Gerrit-Owner: Roy Golan <rgo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to