|
@@ -47,72 +47,43 @@
|
|
|
<version>1.0-beta-1</version>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
- <id>clean</id>
|
|
|
- <phase>clean</phase>
|
|
|
- <configuration>
|
|
|
- <arguments>
|
|
|
- <argument>-i</argument>
|
|
|
- </arguments>
|
|
|
- <workDir>src/main/c/container-executor</workDir>
|
|
|
- <destDir>target</destDir>
|
|
|
- </configuration>
|
|
|
- <goals>
|
|
|
- <goal>autoreconf</goal>
|
|
|
- <goal>make-clean</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <id>make</id>
|
|
|
+ <id>compile</id>
|
|
|
<phase>compile</phase>
|
|
|
- <configuration>
|
|
|
- <workDir>src/main/c/container-executor</workDir>
|
|
|
- <configureEnvironment>
|
|
|
- <property>
|
|
|
- <name>CFLAGS</name>
|
|
|
- <value>-DHADOOP_CONF_DIR=${container-executor.conf.dir}</value>
|
|
|
- </property>
|
|
|
- </configureEnvironment>
|
|
|
- <sources>
|
|
|
- <source>
|
|
|
- <directory>src/main/c/container-executor</directory>
|
|
|
- </source>
|
|
|
- </sources>
|
|
|
- <workDir>src/main/c/container-executor</workDir>
|
|
|
- <destDir>target</destDir>
|
|
|
- <prefix>${project.build.outputDirectory}</prefix>
|
|
|
- </configuration>
|
|
|
<goals>
|
|
|
<goal>autoreconf</goal>
|
|
|
<goal>configure</goal>
|
|
|
- <goal>compile</goal>
|
|
|
+ <goal>make-install</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
<execution>
|
|
|
- <id>make-test</id>
|
|
|
+ <id>test</id>
|
|
|
<phase>test</phase>
|
|
|
- <configuration>
|
|
|
- <workDir>src/main/c/container-executor</workDir>
|
|
|
- <configureEnvironment>
|
|
|
- <property>
|
|
|
- <name>CFLAGS</name>
|
|
|
- <value>-DHADOOP_CONF_DIR=${container-executor.conf.dir}</value>
|
|
|
- </property>
|
|
|
- </configureEnvironment>
|
|
|
- <sources>
|
|
|
- <source>
|
|
|
- <directory>src/main/c/container-executor</directory>
|
|
|
- </source>
|
|
|
- </sources>
|
|
|
- <workDir>src/main/c/container-executor</workDir>
|
|
|
- <destDir>target</destDir>
|
|
|
- <prefix>${project.build.outputDirectory}</prefix>
|
|
|
- <compileTarget>check</compileTarget>
|
|
|
- </configuration>
|
|
|
<goals>
|
|
|
- <goal>compile</goal>
|
|
|
+ <goal>test</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
+ <configuration>
|
|
|
+ <!-- autoreconf settings -->
|
|
|
+ <workDir>${project.build.directory}/native/container-executor</workDir>
|
|
|
+ <arguments>
|
|
|
+ <argument>-i</argument>
|
|
|
+ </arguments>
|
|
|
+
|
|
|
+ <!-- configure settings -->
|
|
|
+ <configureEnvironment>
|
|
|
+ <property>
|
|
|
+ <name>CFLAGS</name>
|
|
|
+ <value>-DHADOOP_CONF_DIR=${container-executor.conf.dir}</value>
|
|
|
+ </property>
|
|
|
+ </configureEnvironment>
|
|
|
+ <configureWorkDir>${project.build.directory}/native/container-executor</configureWorkDir>
|
|
|
+ <prefix>/usr/local</prefix>
|
|
|
+
|
|
|
+ <!-- configure & make settings -->
|
|
|
+ <destDir>${project.build.directory}/native/target</destDir>
|
|
|
+
|
|
|
+ </configuration>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
@@ -191,6 +162,21 @@
|
|
|
<goal>run</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
+ <execution>
|
|
|
+ <id>compile</id>
|
|
|
+ <phase>generate-sources</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>run</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <target>
|
|
|
+ <mkdir dir="${project.build.directory}/native"/>
|
|
|
+ <copy toDir="${project.build.directory}/native">
|
|
|
+ <fileset dir="${basedir}/src/main/native"/>
|
|
|
+ </copy>
|
|
|
+ </target>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
|