You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by se...@apache.org on 2014/11/17 13:31:24 UTC

[2/2] incubator-flink git commit: [FLINK-1242] Fix streaming-examples and scala-examples POMs to work properly with Eclipse

[FLINK-1242] Fix streaming-examples and scala-examples POMs to work properly with Eclipse


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

Branch: refs/heads/master
Commit: e23874cd886711d4a0c2812562e20719cc35ebb4
Parents: 922f478
Author: Stephan Ewen <se...@apache.org>
Authored: Mon Nov 17 12:49:05 2014 +0100
Committer: Stephan Ewen <se...@apache.org>
Committed: Mon Nov 17 12:49:05 2014 +0100

----------------------------------------------------------------------
 .../flink-streaming-examples/pom.xml            | 83 +++++++++++++------
 flink-examples/flink-scala-examples/pom.xml     | 84 +++++++++++++-------
 2 files changed, 114 insertions(+), 53 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/e23874cd/flink-addons/flink-streaming/flink-streaming-examples/pom.xml
----------------------------------------------------------------------
diff --git a/flink-addons/flink-streaming/flink-streaming-examples/pom.xml b/flink-addons/flink-streaming/flink-streaming-examples/pom.xml
index 20e1500..04cdf52 100644
--- a/flink-addons/flink-streaming/flink-streaming-examples/pom.xml
+++ b/flink-addons/flink-streaming/flink-streaming-examples/pom.xml
@@ -59,32 +59,32 @@ under the License.
 			
 			<!-- get default data from flink-java-examples package -->
 			<plugin>
-         			<groupId>org.apache.maven.plugins</groupId>
-         			<artifactId>maven-dependency-plugin</artifactId>
-         			<version>2.9</version>
-         			<executions>
-           				<execution>
-             					<id>unpack</id>
-             					<phase>prepare-package</phase>
-             					<goals>
-               						<goal>unpack</goal>
-             					</goals>
-             					<configuration>
-               						<artifactItems>
-                 						<artifactItem>
-                   							<groupId>org.apache.flink</groupId>
-                   							<artifactId>flink-java-examples</artifactId>
-                   							<version>${project.version}</version>
-                   							<type>jar</type>
-                   							<overWrite>false</overWrite>
-                   							<outputDirectory>${project.build.directory}/classes</outputDirectory>
-                   							<includes>org/apache/flink/examples/java/wordcount/util/WordCountData.class</includes>
-						                </artifactItem>
-               						</artifactItems>
-             					</configuration>
-           				</execution>
-         			</executions>
-       			</plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-dependency-plugin</artifactId>
+				<version>2.9</version><!--$NO-MVN-MAN-VER$-->
+				<executions>
+					<execution>
+						<id>unpack</id>
+						<phase>prepare-package</phase>
+						<goals>
+							<goal>unpack</goal>
+						</goals>
+						<configuration>
+							<artifactItems>
+								<artifactItem>
+									<groupId>org.apache.flink</groupId>
+									<artifactId>flink-java-examples</artifactId>
+									<version>${project.version}</version>
+									<type>jar</type>
+									<overWrite>false</overWrite>
+									<outputDirectory>${project.build.directory}/classes</outputDirectory>
+									<includes>org/apache/flink/examples/java/wordcount/util/WordCountData.class</includes>
+								</artifactItem>
+							</artifactItems>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
 
 			<!-- self-contained jars for each example -->
 			<plugin>
@@ -232,6 +232,37 @@ 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.-->
+				<plugin>
+					<groupId>org.eclipse.m2e</groupId>
+					<artifactId>lifecycle-mapping</artifactId>
+					<version>1.0.0</version>
+					<configuration>
+						<lifecycleMappingMetadata>
+							<pluginExecutions>
+								<pluginExecution>
+									<pluginExecutionFilter>
+										<groupId>org.apache.maven.plugins</groupId>
+										<artifactId>maven-dependency-plugin</artifactId>
+										<versionRange>[2.9,)</versionRange>
+										<goals>
+											<goal>unpack</goal>
+										</goals>
+									</pluginExecutionFilter>
+									<action>
+										<ignore/>
+									</action>
+								</pluginExecution>
+							</pluginExecutions>
+						</lifecycleMappingMetadata>
+					</configuration>
+				</plugin>
+			</plugins>
+		</pluginManagement>
+		
 	</build>
 
 </project>

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/e23874cd/flink-examples/flink-scala-examples/pom.xml
----------------------------------------------------------------------
diff --git a/flink-examples/flink-scala-examples/pom.xml b/flink-examples/flink-scala-examples/pom.xml
index ad058fc..e601099 100644
--- a/flink-examples/flink-scala-examples/pom.xml
+++ b/flink-examples/flink-scala-examples/pom.xml
@@ -172,32 +172,32 @@ under the License.
 			
 			<!-- get default data from flink-java-examples package -->
 			<plugin>
-         			<groupId>org.apache.maven.plugins</groupId>
-         			<artifactId>maven-dependency-plugin</artifactId>
-         			<version>2.9</version>
-         			<executions>
-           				<execution>
-             					<id>unpack</id>
-             					<phase>prepare-package</phase>
-             					<goals>
-               						<goal>unpack</goal>
-             					</goals>
-             					<configuration>
-               						<artifactItems>
-                 						<artifactItem>
-                   							<groupId>org.apache.flink</groupId>
-                   							<artifactId>flink-java-examples</artifactId>
-                   							<version>${project.version}</version>
-                   							<type>jar</type>
-                   							<overWrite>false</overWrite>
-                   							<outputDirectory>${project.build.directory}/classes</outputDirectory>
-                   							<includes>**/util/*Data*.class</includes>
-						                </artifactItem>
-               						</artifactItems>
-             					</configuration>
-           				</execution>
-         			</executions>
-       			</plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-dependency-plugin</artifactId>
+				<version>2.9</version><!--$NO-MVN-MAN-VER$-->
+				<executions>
+					<execution>
+						<id>unpack</id>
+						<phase>prepare-package</phase>
+						<goals>
+							<goal>unpack</goal>
+						</goals>
+						<configuration>
+							<artifactItems>
+								<artifactItem>
+									<groupId>org.apache.flink</groupId>
+									<artifactId>flink-java-examples</artifactId>
+									<version>${project.version}</version>
+									<type>jar</type>
+									<overWrite>false</overWrite>
+									<outputDirectory>${project.build.directory}/classes</outputDirectory>
+									<includes>**/util/*Data*.class</includes>
+								</artifactItem>
+							</artifactItems>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
 
 			<plugin>
 				<groupId>org.apache.maven.plugins</groupId>
@@ -450,8 +450,38 @@ 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 and simply suppresses errors in Eclipse.-->
+				<plugin>
+					<groupId>org.eclipse.m2e</groupId>
+					<artifactId>lifecycle-mapping</artifactId>
+					<version>1.0.0</version>
+					<configuration>
+						<lifecycleMappingMetadata>
+							<pluginExecutions>
+								<pluginExecution>
+									<pluginExecutionFilter>
+										<groupId>org.apache.maven.plugins</groupId>
+										<artifactId>maven-dependency-plugin</artifactId>
+										<versionRange>[2.9,)</versionRange>
+										<goals>
+											<goal>unpack</goal>
+										</goals>
+									</pluginExecutionFilter>
+									<action>
+										<ignore/>
+									</action>
+								</pluginExecution>
+							</pluginExecutions>
+						</lifecycleMappingMetadata>
+					</configuration>
+				</plugin>
+			</plugins>
+		</pluginManagement>
 	</build>
 
 </project>