Thanks for everyone's input.
For keeping java and scala examples separately, will take proposal 1 to
change POM.
meanwhile,will make "flink-streaming-examples and
flink-storm-compatibility-example" changes too according to mbalassi's
suggestion.
*One question: * As per pom.xml of scala/storm/streaming(the above mentioned
examples) description, only unpacking the
"flink-java-examples-0.10-SNAPSHOT.jar" for reference java examples'
*data.class, doesn't unpack other *.jar file. So through setting finalName
to replace classifier for changing the examples' name(for example: from
"flink-java-examples-0.10-SNAPSHOT-KMeans.jar" to "KMeans.jar") , should not
impact other program to unpack the "flink-java-examples-0.10-SNAPSHOT.jar",
because there are no any change for the
"flink-java-examples-0.10-SNAPSHOT.jar".
---------flink-scala-example reference java example error msg--------
[ERROR]
/Users/chenliang/flink/flink-examples/flink-scala-examples/src/main/scala/org/apache/flink/examples/scala/clustering/KMeans.scala:148:
error: not found: value KMeansData
[ERROR] val points = KMeansData.POINTS map {
[ERROR] ^
[WARNING]
/Users/chenliang/flink/flink-examples/flink-scala-examples/src/main/scala/org/apache/flink/examples/scala/clustering/KMeans.scala:161:
warning: Type org.apache.flink.examples.scala.clustering.KMeans.Centroid is
no POJO, has immutable fields: value y, value x.
[WARNING] .map { x => new Centroid(x._1, x._2, x._3)}
[WARNING] ^
[ERROR]
/Users/chenliang/flink/flink-examples/flink-scala-examples/src/main/scala/org/apache/flink/examples/scala/clustering/KMeans.scala:164:
error: not found: value KMeansData
[ERROR] val centroids = KMeansData.CENTROIDS map {
<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>
--
View this message in context:
http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/jira-FLINK-2493-Simplify-names-of-example-program-JARs-tp7495p7753.html
Sent from the Apache Flink Mailing List archive. mailing list archive at
Nabble.com.