Skip to content

Commit

Permalink
[storm-compat] Moved Storm-compatibility to flink-contrib and split f…
Browse files Browse the repository at this point in the history
…link-contrib into small sub-projects

Closes apache#573
  • Loading branch information
mbalassi committed Jun 14, 2015
1 parent e39699f commit 12b13f9
Show file tree
Hide file tree
Showing 107 changed files with 186 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ under the License.

<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-parent</artifactId>
<artifactId>flink-storm-compatibility-parent</artifactId>
<version>0.9-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>flink-storm-compatibility</artifactId>
<name>flink-storm-compatibility</name>
<artifactId>flink-storm-compatibility-core</artifactId>
<name>flink-storm-compatibility-core</name>

<packaging>jar</packaging>

Expand All @@ -52,7 +52,7 @@ under the License.
</exclusion>
</exclusions>
</dependency>

</dependencies>

<build>
Expand All @@ -69,7 +69,7 @@ under the License.
</executions>
</plugin>
</plugins>

<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ under the License.

<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-parent</artifactId>
<artifactId>flink-storm-compatibility-parent</artifactId>
<version>0.9-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>flink-storm-examples</artifactId>
<name>flink-storm-examples</name>
<artifactId>flink-storm-compatibility-examples</artifactId>
<name>flink-storm-compatibility-examples</name>

<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-storm-compatibility</artifactId>
<artifactId>flink-storm-compatibility-core</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-java-examples</artifactId>
Expand All @@ -52,7 +52,7 @@ under the License.
<artifactId>flink-streaming-core</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<classifier>tests</classifier>
<type>test-jar</type>
</dependency>

<dependency>
Expand Down Expand Up @@ -90,7 +90,7 @@ under the License.
</artifactItem>
<artifactItem>
<groupId>org.apache.flink</groupId>
<artifactId>flink-storm-compatibility</artifactId>
<artifactId>flink-storm-compatibility-core</artifactId>
<version>${project.version}</version>
<type>jar</type>
<overWrite>false</overWrite>
Expand Down Expand Up @@ -131,7 +131,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>

<executions>

<!-- WordCount Spout source-->
Expand Down
40 changes: 40 additions & 0 deletions flink-contrib/flink-storm-compatibility/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<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.apache.flink</groupId>
<artifactId>flink-contrib-parent</artifactId>
<version>0.9-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>flink-storm-compatibility-parent</artifactId>
<name>flink-storm-compatibility</name>
<packaging>pom</packaging>

<modules>
<module>flink-storm-compatibility-core</module>
<module>flink-storm-compatibility-examples</module>
</modules>
</project>
58 changes: 58 additions & 0 deletions flink-contrib/flink-streaming-contrib/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<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.apache.flink</groupId>
<artifactId>flink-contrib-parent</artifactId>
<version>0.9-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>flink-streaming-contrib</artifactId>
<name>flink-streaming-contrib</name>

<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-test-utils</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
File renamed without changes.
64 changes: 64 additions & 0 deletions flink-contrib/flink-tweet-inputformat/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<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.apache.flink</groupId>
<artifactId>flink-contrib-parent</artifactId>
<version>0.9-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>flink-tweet-inputformat</artifactId>
<name>flink-tweet-inputformat</name>

<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-java</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-test-utils</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>

</project>
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void testSetUp() {

simpleTweetInputFormat = new SimpleTweetInputFormat();

File jsonFile = new File("../flink-contrib/src/main/resources/HashTagTweetSample.json");
File jsonFile = new File("src/main/resources/HashTagTweetSample.json");

fileInputSplit = new FileInputSplit(0, new Path(jsonFile.getPath()), 0, jsonFile.length(), new String[]{"localhost"});
}
Expand Down Expand Up @@ -95,4 +95,4 @@ public void testTweetInput() throws Exception {
Assert.assertTrue(simpleTweetInputFormat.reachedEnd());

}
}
}
40 changes: 8 additions & 32 deletions flink-contrib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,39 +31,15 @@ under the License.
<relativePath>..</relativePath>
</parent>

<artifactId>flink-contrib</artifactId>
<name>flink-contrib</name>

<packaging>jar</packaging>
<modules>
<module>flink-storm-compatibility</module>
<module>flink-streaming-contrib</module>
<module>flink-tweet-inputformat</module>
</modules>

<dependencies>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-java</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-test-utils</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<artifactId>flink-contrib-parent</artifactId>
<name>flink-contrib</name>

<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
<packaging>pom</packaging>

</project>
2 changes: 0 additions & 2 deletions flink-staging/flink-streaming/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ under the License.
<module>flink-streaming-scala</module>
<module>flink-streaming-examples</module>
<module>flink-streaming-connectors</module>
<module>flink-storm-compatibility</module>
<module>flink-storm-examples</module>
</modules>

</project>
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ under the License.
<exclude>flink-staging/flink-avro/src/test/resources/avro/*.avsc</exclude>
<exclude>out/test/flink-avro/avro/user.avsc</exclude>
<!-- TweetInputFormat Test Data-->
<exclude>flink-contrib/src/main/resources/HashTagTweetSample.json</exclude>
<exclude>flink-contrib/flink-tweet-inputformat/src/main/resources/HashTagTweetSample.json</exclude>
<exclude>flink-staging/flink-avro/src/test/resources/testdata.avro</exclude>
<exclude>flink-staging/flink-avro/src/test/java/org/apache/flink/api/io/avro/generated/*.java</exclude>
<exclude>flink-staging/flink-language-binding/flink-python/src/test/python/org/apache/flink/languagebinding/api/python/flink/test/data_csv</exclude>
Expand Down

0 comments on commit 12b13f9

Please sign in to comment.