Re: Deprecated error building flink

2015-02-22 Thread Dulaj Viduranga
Hi,
But I’m using Oracle java 8 (javac 1.8.0_05). 

 On Feb 22, 2015, at 6:32 PM, Robert Metzger rmetz...@apache.org wrote:
 
 Hi Dulaj,
 
 you are using an unsupported compiler to compile Flink. You can compile
 Flink only with OpenJDK 6 and all JDKs above 6. The Oracle JDK 6's compiler
 contains a bug.
 
 You can run Flink with all JREs 6+ (including Oracle JDK 6).
 
 I would recommend you to upgrade your Java version to 7 anyways, because 6
 doesn't receive any security updates anymore.
 
 
 On Sun, Feb 22, 2015 at 12:55 PM, Dulaj Viduranga vidura...@icloud.com
 wrote:
 
 Hi all,
 I’m new here. I had some problems building flink on my mac. Could someone
 please take a look and help me out..?
 
 Dulaj Viduranga.
 
 [INFO] Scanning for projects...
 [WARNING]
 [WARNING] Some problems were encountered while building the effective
 model for org.apache.flink:flink-streaming-examples:jar:0.9-SNAPSHOT
 [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but
 found duplicate declaration of plugin
 org.apache.maven.plugins:maven-jar-plugin @
 org.apache.flink:flink-streaming-examples:[unknown-version],
 /Users/Vidura/Documents/Development/flink/flink-staging/flink-streaming/flink-streaming-examples/pom.xml,
 line 462, column 12
 [WARNING]
 [WARNING] It is highly recommended to fix these problems because they
 threaten the stability of your build.
 [WARNING]
 [WARNING] For this reason, future Maven versions might no longer support
 building such malformed projects.
 [WARNING]
 [INFO]
 
 [INFO] Reactor Build Order:
 [INFO]
 [INFO] flink
 [INFO] flink-shaded
 [INFO] flink-core
 [INFO] flink-java
 [INFO] flink-runtime
 [INFO] flink-compiler
 [INFO] flink-clients
 [INFO] flink-test-utils
 [INFO] flink-scala
 [INFO] flink-examples
 [INFO] flink-java-examples
 [INFO] flink-scala-examples
 [INFO] flink-staging
 [INFO] flink-streaming
 [INFO] flink-streaming-core
 [INFO] flink-tests
 [INFO] flink-avro
 [INFO] flink-jdbc
 [INFO] flink-spargel
 [INFO] flink-hadoop-compatibility
 [INFO] flink-streaming-scala
 [INFO] flink-streaming-connectors
 [INFO] flink-streaming-examples
 [INFO] flink-hbase
 [INFO] flink-gelly
 [INFO] flink-hcatalog
 [INFO] flink-tachyon
 [INFO] flink-quickstart
 [INFO] flink-quickstart-java
 [INFO] flink-quickstart-scala
 [INFO] flink-contrib
 [INFO] flink-yarn
 [INFO] flink-dist
 [INFO] flink-yarn-tests
 [INFO]
 [INFO]
 
 [INFO] Building flink 0.9-SNAPSHOT
 [INFO]
 
 Downloading:
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.pom
 Downloaded:
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.pom
 (10 KB at 1.8 KB/sec)
 Downloading:
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-project/0.10/apache-rat-project-0.10.pom
 Downloaded:
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-project/0.10/apache-rat-project-0.10.pom
 (18 KB at 13.9 KB/sec)
 Downloading:
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.jar
 Downloaded:
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.jar
 (42 KB at 31.8 KB/sec)
 Downloading:
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.pom
 Downloaded:
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.pom
 (8 KB at 8.0 KB/sec)
 Downloading:
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.jar
 Downloaded:
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.jar
 (33 KB at 27.4 KB/sec)
 [INFO]
 [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ flink-parent ---
 [INFO] Deleting /Users/Vidura/Documents/Development/flink/target
 [INFO]
 [INFO] --- maven-checkstyle-plugin:2.12.1:check (validate) @ flink-parent
 ---
 [INFO]
 [INFO]
 [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @
 flink-parent ---
 [INFO]
 [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
 flink-parent ---
 [INFO]
 [INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @
 flink-parent ---
 [INFO]
 [INFO] --- maven-shade-plugin:2.3:shade (default) @ flink-parent ---
 [INFO] Excluding org.apache.commons:commons-lang3:jar:3.3.2 from the
 shaded jar.
 [INFO] Excluding org.slf4j:slf4j-api:jar:1.7.7 from the shaded jar.
 [INFO] Excluding org.slf4j:slf4j-log4j12:jar:1.7.7 from the shaded jar.
 [INFO] Excluding log4j:log4j:jar:1.2.17 from the shaded jar.
 [INFO] Replacing original artifact with shaded artifact.
 [INFO]
 [INFO] --- 

Re: Deprecated error building flink

2015-02-22 Thread Robert Metzger
Seems like you have to set the JAVA_HOME variable properly (
http://stackoverflow.com/questions/18813828/why-maven-use-jdk-1-6-but-my-java-version-is-1-7
)

On Sun, Feb 22, 2015 at 2:11 PM, Dulaj Viduranga vidura...@icloud.com
wrote:

 Oh yes. :) It runs on 1.6. How could I fix that?

  On Feb 22, 2015, at 6:37 PM, Robert Metzger rmetz...@apache.org wrote:
 
  Can you run mvn -version to verify that?
  Maybe maven is using a different java version?
 
  On Sun, Feb 22, 2015 at 2:05 PM, Dulaj Viduranga vidura...@icloud.com
  wrote:
 
  Hi,
 But I’m using Oracle java 8 (javac 1.8.0_05).
 
  On Feb 22, 2015, at 6:32 PM, Robert Metzger rmetz...@apache.org
 wrote:
 
  Hi Dulaj,
 
  you are using an unsupported compiler to compile Flink. You can compile
  Flink only with OpenJDK 6 and all JDKs above 6. The Oracle JDK 6's
  compiler
  contains a bug.
 
  You can run Flink with all JREs 6+ (including Oracle JDK 6).
 
  I would recommend you to upgrade your Java version to 7 anyways,
 because
  6
  doesn't receive any security updates anymore.
 
 
  On Sun, Feb 22, 2015 at 12:55 PM, Dulaj Viduranga 
 vidura...@icloud.com
  wrote:
 
  Hi all,
  I’m new here. I had some problems building flink on my mac. Could
  someone
  please take a look and help me out..?
 
  Dulaj Viduranga.
 
  [INFO] Scanning for projects...
  [WARNING]
  [WARNING] Some problems were encountered while building the effective
  model for org.apache.flink:flink-streaming-examples:jar:0.9-SNAPSHOT
  [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique
 but
  found duplicate declaration of plugin
  org.apache.maven.plugins:maven-jar-plugin @
  org.apache.flink:flink-streaming-examples:[unknown-version],
 
 
 /Users/Vidura/Documents/Development/flink/flink-staging/flink-streaming/flink-streaming-examples/pom.xml,
  line 462, column 12
  [WARNING]
  [WARNING] It is highly recommended to fix these problems because they
  threaten the stability of your build.
  [WARNING]
  [WARNING] For this reason, future Maven versions might no longer
 support
  building such malformed projects.
  [WARNING]
  [INFO]
 
 
  [INFO] Reactor Build Order:
  [INFO]
  [INFO] flink
  [INFO] flink-shaded
  [INFO] flink-core
  [INFO] flink-java
  [INFO] flink-runtime
  [INFO] flink-compiler
  [INFO] flink-clients
  [INFO] flink-test-utils
  [INFO] flink-scala
  [INFO] flink-examples
  [INFO] flink-java-examples
  [INFO] flink-scala-examples
  [INFO] flink-staging
  [INFO] flink-streaming
  [INFO] flink-streaming-core
  [INFO] flink-tests
  [INFO] flink-avro
  [INFO] flink-jdbc
  [INFO] flink-spargel
  [INFO] flink-hadoop-compatibility
  [INFO] flink-streaming-scala
  [INFO] flink-streaming-connectors
  [INFO] flink-streaming-examples
  [INFO] flink-hbase
  [INFO] flink-gelly
  [INFO] flink-hcatalog
  [INFO] flink-tachyon
  [INFO] flink-quickstart
  [INFO] flink-quickstart-java
  [INFO] flink-quickstart-scala
  [INFO] flink-contrib
  [INFO] flink-yarn
  [INFO] flink-dist
  [INFO] flink-yarn-tests
  [INFO]
  [INFO]
 
 
  [INFO] Building flink 0.9-SNAPSHOT
  [INFO]
 
 
  Downloading:
 
 
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.pom
  Downloaded:
 
 
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.pom
  (10 KB at 1.8 KB/sec)
  Downloading:
 
 
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-project/0.10/apache-rat-project-0.10.pom
  Downloaded:
 
 
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-project/0.10/apache-rat-project-0.10.pom
  (18 KB at 13.9 KB/sec)
  Downloading:
 
 
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.jar
  Downloaded:
 
 
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.jar
  (42 KB at 31.8 KB/sec)
  Downloading:
 
 
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.pom
  Downloaded:
 
 
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.pom
  (8 KB at 8.0 KB/sec)
  Downloading:
 
 
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.jar
  Downloaded:
 
 
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.jar
  (33 KB at 27.4 KB/sec)
  [INFO]
  [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ flink-parent
  ---
  [INFO] Deleting /Users/Vidura/Documents/Development/flink/target
  [INFO]
  [INFO] --- maven-checkstyle-plugin:2.12.1:check (validate) @
  flink-parent
  ---
  [INFO]
  [INFO]
  [INFO] --- 

Re: Deprecated error building flink

2015-02-22 Thread Robert Metzger
Hi Dulaj,

you are using an unsupported compiler to compile Flink. You can compile
Flink only with OpenJDK 6 and all JDKs above 6. The Oracle JDK 6's compiler
contains a bug.

You can run Flink with all JREs 6+ (including Oracle JDK 6).

I would recommend you to upgrade your Java version to 7 anyways, because 6
doesn't receive any security updates anymore.


On Sun, Feb 22, 2015 at 12:55 PM, Dulaj Viduranga vidura...@icloud.com
wrote:

 Hi all,
 I’m new here. I had some problems building flink on my mac. Could someone
 please take a look and help me out..?

 Dulaj Viduranga.

 [INFO] Scanning for projects...
 [WARNING]
 [WARNING] Some problems were encountered while building the effective
 model for org.apache.flink:flink-streaming-examples:jar:0.9-SNAPSHOT
 [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but
 found duplicate declaration of plugin
 org.apache.maven.plugins:maven-jar-plugin @
 org.apache.flink:flink-streaming-examples:[unknown-version],
 /Users/Vidura/Documents/Development/flink/flink-staging/flink-streaming/flink-streaming-examples/pom.xml,
 line 462, column 12
 [WARNING]
 [WARNING] It is highly recommended to fix these problems because they
 threaten the stability of your build.
 [WARNING]
 [WARNING] For this reason, future Maven versions might no longer support
 building such malformed projects.
 [WARNING]
 [INFO]
 
 [INFO] Reactor Build Order:
 [INFO]
 [INFO] flink
 [INFO] flink-shaded
 [INFO] flink-core
 [INFO] flink-java
 [INFO] flink-runtime
 [INFO] flink-compiler
 [INFO] flink-clients
 [INFO] flink-test-utils
 [INFO] flink-scala
 [INFO] flink-examples
 [INFO] flink-java-examples
 [INFO] flink-scala-examples
 [INFO] flink-staging
 [INFO] flink-streaming
 [INFO] flink-streaming-core
 [INFO] flink-tests
 [INFO] flink-avro
 [INFO] flink-jdbc
 [INFO] flink-spargel
 [INFO] flink-hadoop-compatibility
 [INFO] flink-streaming-scala
 [INFO] flink-streaming-connectors
 [INFO] flink-streaming-examples
 [INFO] flink-hbase
 [INFO] flink-gelly
 [INFO] flink-hcatalog
 [INFO] flink-tachyon
 [INFO] flink-quickstart
 [INFO] flink-quickstart-java
 [INFO] flink-quickstart-scala
 [INFO] flink-contrib
 [INFO] flink-yarn
 [INFO] flink-dist
 [INFO] flink-yarn-tests
 [INFO]
 [INFO]
 
 [INFO] Building flink 0.9-SNAPSHOT
 [INFO]
 
 Downloading:
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.pom
 Downloaded:
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.pom
 (10 KB at 1.8 KB/sec)
 Downloading:
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-project/0.10/apache-rat-project-0.10.pom
 Downloaded:
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-project/0.10/apache-rat-project-0.10.pom
 (18 KB at 13.9 KB/sec)
 Downloading:
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.jar
 Downloaded:
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.jar
 (42 KB at 31.8 KB/sec)
 Downloading:
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.pom
 Downloaded:
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.pom
 (8 KB at 8.0 KB/sec)
 Downloading:
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.jar
 Downloaded:
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.jar
 (33 KB at 27.4 KB/sec)
 [INFO]
 [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ flink-parent ---
 [INFO] Deleting /Users/Vidura/Documents/Development/flink/target
 [INFO]
 [INFO] --- maven-checkstyle-plugin:2.12.1:check (validate) @ flink-parent
 ---
 [INFO]
 [INFO]
 [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @
 flink-parent ---
 [INFO]
 [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
 flink-parent ---
 [INFO]
 [INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @
 flink-parent ---
 [INFO]
 [INFO] --- maven-shade-plugin:2.3:shade (default) @ flink-parent ---
 [INFO] Excluding org.apache.commons:commons-lang3:jar:3.3.2 from the
 shaded jar.
 [INFO] Excluding org.slf4j:slf4j-api:jar:1.7.7 from the shaded jar.
 [INFO] Excluding org.slf4j:slf4j-log4j12:jar:1.7.7 from the shaded jar.
 [INFO] Excluding log4j:log4j:jar:1.2.17 from the shaded jar.
 [INFO] Replacing original artifact with shaded artifact.
 [INFO]
 [INFO] --- maven-failsafe-plugin:2.17:integration-test (default) @
 flink-parent ---
 [INFO] Tests are skipped.
 [INFO]
 [INFO] --- apache-rat-plugin:0.10:check (default) @ 

Re: Deprecated error building flink

2015-02-22 Thread Dulaj Viduranga
Oh yes. :) It runs on 1.6. How could I fix that?

 On Feb 22, 2015, at 6:37 PM, Robert Metzger rmetz...@apache.org wrote:
 
 Can you run mvn -version to verify that?
 Maybe maven is using a different java version?
 
 On Sun, Feb 22, 2015 at 2:05 PM, Dulaj Viduranga vidura...@icloud.com
 wrote:
 
 Hi,
But I’m using Oracle java 8 (javac 1.8.0_05).
 
 On Feb 22, 2015, at 6:32 PM, Robert Metzger rmetz...@apache.org wrote:
 
 Hi Dulaj,
 
 you are using an unsupported compiler to compile Flink. You can compile
 Flink only with OpenJDK 6 and all JDKs above 6. The Oracle JDK 6's
 compiler
 contains a bug.
 
 You can run Flink with all JREs 6+ (including Oracle JDK 6).
 
 I would recommend you to upgrade your Java version to 7 anyways, because
 6
 doesn't receive any security updates anymore.
 
 
 On Sun, Feb 22, 2015 at 12:55 PM, Dulaj Viduranga vidura...@icloud.com
 wrote:
 
 Hi all,
 I’m new here. I had some problems building flink on my mac. Could
 someone
 please take a look and help me out..?
 
 Dulaj Viduranga.
 
 [INFO] Scanning for projects...
 [WARNING]
 [WARNING] Some problems were encountered while building the effective
 model for org.apache.flink:flink-streaming-examples:jar:0.9-SNAPSHOT
 [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but
 found duplicate declaration of plugin
 org.apache.maven.plugins:maven-jar-plugin @
 org.apache.flink:flink-streaming-examples:[unknown-version],
 
 /Users/Vidura/Documents/Development/flink/flink-staging/flink-streaming/flink-streaming-examples/pom.xml,
 line 462, column 12
 [WARNING]
 [WARNING] It is highly recommended to fix these problems because they
 threaten the stability of your build.
 [WARNING]
 [WARNING] For this reason, future Maven versions might no longer support
 building such malformed projects.
 [WARNING]
 [INFO]
 
 [INFO] Reactor Build Order:
 [INFO]
 [INFO] flink
 [INFO] flink-shaded
 [INFO] flink-core
 [INFO] flink-java
 [INFO] flink-runtime
 [INFO] flink-compiler
 [INFO] flink-clients
 [INFO] flink-test-utils
 [INFO] flink-scala
 [INFO] flink-examples
 [INFO] flink-java-examples
 [INFO] flink-scala-examples
 [INFO] flink-staging
 [INFO] flink-streaming
 [INFO] flink-streaming-core
 [INFO] flink-tests
 [INFO] flink-avro
 [INFO] flink-jdbc
 [INFO] flink-spargel
 [INFO] flink-hadoop-compatibility
 [INFO] flink-streaming-scala
 [INFO] flink-streaming-connectors
 [INFO] flink-streaming-examples
 [INFO] flink-hbase
 [INFO] flink-gelly
 [INFO] flink-hcatalog
 [INFO] flink-tachyon
 [INFO] flink-quickstart
 [INFO] flink-quickstart-java
 [INFO] flink-quickstart-scala
 [INFO] flink-contrib
 [INFO] flink-yarn
 [INFO] flink-dist
 [INFO] flink-yarn-tests
 [INFO]
 [INFO]
 
 [INFO] Building flink 0.9-SNAPSHOT
 [INFO]
 
 Downloading:
 
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.pom
 Downloaded:
 
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.pom
 (10 KB at 1.8 KB/sec)
 Downloading:
 
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-project/0.10/apache-rat-project-0.10.pom
 Downloaded:
 
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-project/0.10/apache-rat-project-0.10.pom
 (18 KB at 13.9 KB/sec)
 Downloading:
 
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.jar
 Downloaded:
 
 https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat-plugin/0.10/apache-rat-plugin-0.10.jar
 (42 KB at 31.8 KB/sec)
 Downloading:
 
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.pom
 Downloaded:
 
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.pom
 (8 KB at 8.0 KB/sec)
 Downloading:
 
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.jar
 Downloaded:
 
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.1/maven-install-plugin-2.5.1.jar
 (33 KB at 27.4 KB/sec)
 [INFO]
 [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ flink-parent
 ---
 [INFO] Deleting /Users/Vidura/Documents/Development/flink/target
 [INFO]
 [INFO] --- maven-checkstyle-plugin:2.12.1:check (validate) @
 flink-parent
 ---
 [INFO]
 [INFO]
 [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @
 flink-parent ---
 [INFO]
 [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
 flink-parent ---
 [INFO]
 [INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @
 flink-parent ---
 [INFO]
 [INFO] --- maven-shade-plugin:2.3:shade (default) @ flink-parent ---
 [INFO] Excluding