TEZ-3995. Fix dot files produced by tests to prevent ASF license warnings in yetus...
authorJaume Marhuenda <jmarhuenda@hortonworks.com>
Tue, 9 Oct 2018 18:31:58 +0000 (13:31 -0500)
committerJonathan Eagles <jeagles@yahoo-inc.com>
Tue, 9 Oct 2018 18:31:58 +0000 (13:31 -0500)
tez-dag/pom.xml

index 7476bbc..5f63079 100644 (file)
@@ -31,6 +31,7 @@
     org.apache.tez.dag.app.rm.container.AMContainerImpl</tez.dag.state.classes>
     <tez.graphviz.title>Tez</tez.graphviz.title>
     <tez.graphviz.output.file>Tez.gv</tez.graphviz.output.file>
+    <test.tmp.dir>${project.build.directory}/dagviz</test.tmp.dir>
   </properties>
   <artifactId>tez-dag</artifactId>
 
         <artifactId>apache-rat-plugin</artifactId>
       </plugin>
       <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>generate-sources</id>
+            <phase>generate-sources</phase>
+            <configuration>
+              <tasks>
+                <delete dir="${test.tmp.dir}" />
+                <mkdir dir="${test.tmp.dir}" />
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <environmentVariables>
+            <LOG_DIRS>${test.tmp.dir}</LOG_DIRS>
+          </environmentVariables>
+        </configuration>
+      </plugin>
+      <plugin>
         <groupId>org.apache.hadoop</groupId>
         <artifactId>hadoop-maven-plugins</artifactId>
         <executions>