Repository: flink
Updated Branches:
  refs/heads/release-0.8 cd2f88afd -> 6afa4ba6e


[hotfix] Fix missing guava dependency of flink-tests

When building in hadoop 2 profile everything is fine since we get guava
as a transitive dependency. For hadoop 1 we need to manually add the
guava dependency. This was erroneously removed earlier.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/6afa4ba6
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/6afa4ba6
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/6afa4ba6

Branch: refs/heads/release-0.8
Commit: 6afa4ba6e06084a7883be0d97cade57ebd8269ec
Parents: cd2f88a
Author: Aljoscha Krettek <[email protected]>
Authored: Mon Feb 9 17:10:54 2015 +0100
Committer: Aljoscha Krettek <[email protected]>
Committed: Mon Feb 9 17:46:44 2015 +0100

----------------------------------------------------------------------
 flink-tests/pom.xml | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/6afa4ba6/flink-tests/pom.xml
----------------------------------------------------------------------
diff --git a/flink-tests/pom.xml b/flink-tests/pom.xml
index b94283d..c773a21 100644
--- a/flink-tests/pom.xml
+++ b/flink-tests/pom.xml
@@ -396,4 +396,35 @@ under the License.
                        </plugins>
                </pluginManagement>
        </build>
+
+       <!-- See main pom.xml for explanation of profiles -->
+       <profiles>
+               <profile>
+                       <id>hadoop-1</id>
+                       <activation>
+                               <property>
+                                       <!-- Please do not remove the 'hadoop1' 
comment. See ./tools/generate_specific_pom.sh -->
+                                       
<!--hadoop1--><name>hadoop.profile</name><value>1</value>
+                               </property>
+                       </activation>
+                       <dependencies>
+                               <!-- Add this here, for hadoop-2 we don't need 
it since we get guava transitively -->
+                               <dependency>
+                                       <groupId>com.google.guava</groupId>
+                                       <artifactId>guava</artifactId>
+                                       <version>${guava.version}</version>
+                                       <scope>test</scope>
+                               </dependency>
+                       </dependencies>
+               </profile>
+               <profile>
+                       <id>hadoop-2</id>
+                       <activation>
+                               <property>
+                                       <!-- Please do not remove the 'hadoop2' 
comment. See ./tools/generate_specific_pom.sh -->
+                                       
<!--hadoop2--><name>!hadoop.profile</name>
+                               </property>
+                       </activation>
+               </profile>
+       </profiles>
 </project>

Reply via email to