Skip to content

Commit

Permalink
[hotfix] [build] Fix curator deps, Exclude Curator deps in Tests
Browse files Browse the repository at this point in the history
Tests would fail because of version conflicts because the tests include
the original curator dependencies even though we shade them away in the
final build result.

This also fixes dependency management entries for curator dependencies.
We shade it, therefore it cannot be in the dependency management
section in the root pom.
  • Loading branch information
aljoscha authored and StephanEwen committed Sep 18, 2015
1 parent 35dcceb commit e31a4d8
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 14 deletions.
12 changes: 12 additions & 0 deletions flink-runtime/pom.xml
Expand Up @@ -201,6 +201,8 @@ under the License.
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>${curator.version}</version>
<scope>test</scope>
</dependency>

</dependencies>
Expand Down Expand Up @@ -338,6 +340,11 @@ under the License.
<exclude>**/TestData.java</exclude>
<exclude>**/TestInstanceListener.java</exclude>
</excludes>
<classpathDependencyExcludes>
<classpathDependencyExclude>org.apache.curator:curator-recipes</classpathDependencyExclude>
<classpathDependencyExclude>org.apache.curator:curator-client</classpathDependencyExclude>
<classpathDependencyExclude>org.apache.curator:curator-framework</classpathDependencyExclude>
</classpathDependencyExcludes>
<systemPropertyVariables>
<log.level>WARN</log.level>
</systemPropertyVariables>
Expand All @@ -350,6 +357,11 @@ under the License.
<excludes>
<exclude>**/TestData.java</exclude>
</excludes>
<classpathDependencyExcludes>
<classpathDependencyExclude>org.apache.curator:curator-recipes</classpathDependencyExclude>
<classpathDependencyExclude>org.apache.curator:curator-client</classpathDependencyExclude>
<classpathDependencyExclude>org.apache.curator:curator-framework</classpathDependencyExclude>
</classpathDependencyExcludes>
<systemPropertyVariables>
<log.level>WARN</log.level>
</systemPropertyVariables>
Expand Down
Expand Up @@ -101,7 +101,7 @@ under the License.
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>2.7.1</version>
<version>${curator.version}</version>
<scope>test</scope>
</dependency>

Expand Down
1 change: 1 addition & 0 deletions flink-test-utils/pom.xml
Expand Up @@ -93,6 +93,7 @@ under the License.
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>${curator.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
10 changes: 10 additions & 0 deletions flink-tests/pom.xml
Expand Up @@ -312,6 +312,11 @@ under the License.
<excludes>
<exclude>**/*TestBase*.class</exclude>
</excludes>
<classpathDependencyExcludes>
<classpathDependencyExclude>org.apache.curator:curator-recipes</classpathDependencyExclude>
<classpathDependencyExclude>org.apache.curator:curator-client</classpathDependencyExclude>
<classpathDependencyExclude>org.apache.curator:curator-framework</classpathDependencyExclude>
</classpathDependencyExcludes>
<reuseForks>false</reuseForks>
</configuration>
</plugin>
Expand All @@ -322,6 +327,11 @@ under the License.
<systemPropertyVariables>
<log.level>WARN</log.level>
</systemPropertyVariables>
<classpathDependencyExcludes>
<classpathDependencyExclude>org.apache.curator:curator-recipes</classpathDependencyExclude>
<classpathDependencyExclude>org.apache.curator:curator-client</classpathDependencyExclude>
<classpathDependencyExclude>org.apache.curator:curator-framework</classpathDependencyExclude>
</classpathDependencyExcludes>
</configuration>
</plugin>

Expand Down
1 change: 1 addition & 0 deletions flink-yarn/pom.xml
Expand Up @@ -60,6 +60,7 @@ under the License.
<groupId>org.apache.flink</groupId>
<artifactId>flink-test-utils</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>


Expand Down
13 changes: 0 additions & 13 deletions pom.xml
Expand Up @@ -335,19 +335,6 @@ under the License.
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>
<version>${curator.version}</version>
</dependency>

<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>${curator.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
Expand Down

0 comments on commit e31a4d8

Please sign in to comment.