flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Ewen <se...@apache.org>
Subject Re: Questions about flink-streaming-examples
Date Wed, 25 Feb 2015 16:07:17 GMT
Hi Matthias!

Can you try "mvn clean package"? It package is generally preferable to
compile, in my opinion.

There may be a dependency through a test jar that is not properly handled
when you do not execute the package goal.

Stephan
Am 25.02.2015 16:54 schrieb "Max Michels" <mxm@apache.org>:

> Hi Matthias,
>
> Did you really pull from the latest master? I just tried to compile
> flink-streaming-examples using "mvn clean compile test-compile" and it
> worked.
>
> Best regards,
> Max
>
> On Wed, Feb 25, 2015 at 4:13 PM, Matthias J. Sax
> <mjsax@informatik.hu-berlin.de> wrote:
> > Hi,
> >
> > I tried to build flink-streaming-examples, but got an compilation error.
> > If I build flink-streaming (that implicitly builds
> > flink-streaming-examples), it works.
> >
> > I tried it on a fresh clone of flink/master using "mvn clean compile
> > test-compile"
> >
> > Can anybody explain this behavior?
> >
> >
> > -Matthias
> >
> >
> >
> >
> >> mjsax@T420s-dbis-mjsax:~/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples$
> mvn clean compile test-compile
> >> [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 @ 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]
> ------------------------------------------------------------------------
> >> [INFO] Building flink-streaming-examples 0.9-SNAPSHOT
> >> [INFO]
> ------------------------------------------------------------------------
> >> [INFO]
> >> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
> flink-streaming-examples ---
> >> [INFO] Deleting
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/target
> >> [INFO]
> >> [INFO] --- maven-checkstyle-plugin:2.12.1:check (validate) @
> flink-streaming-examples ---
> >> [INFO]
> >> [INFO]
> >> [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @
> flink-streaming-examples ---
> >> [INFO]
> >> [INFO] --- build-helper-maven-plugin:1.7:add-source (add-source) @
> flink-streaming-examples ---
> >> [INFO] Source directory:
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/main/scala
> added.
> >> [INFO]
> >> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
> flink-streaming-examples ---
> >> [INFO]
> >> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
> flink-streaming-examples ---
> >> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >> [INFO] skip non existing resourceDirectory
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/main/resources
> >> [INFO] Copying 3 resources
> >> [INFO]
> >> [INFO] --- scala-maven-plugin:3.1.4:compile (scala-compile-first) @
> flink-streaming-examples ---
> >> [INFO]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/main/java:-1:
> info: compiling
> >> [INFO]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/main/scala:-1:
> info: compiling
> >> [INFO] Compiling 14 source files to
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/target/classes
> at 1424877113889
> >> [INFO] compiler plugin:
> BasicArtifact(org.scalamacros,paradise_2.10.4,2.0.1,null)
> >> [WARNING] warning: there were 1 deprecation warning(s); re-run with
> -deprecation for details
> >> [WARNING] one warning found
> >> [INFO] prepare-compile in 0 s
> >> [INFO] compile in 10 s
> >> [INFO]
> >> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
> flink-streaming-examples ---
> >> [INFO] Changes detected - recompiling the module!
> >> [INFO] Compiling 10 source files to
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/target/classes
> >> [INFO]
> >> [INFO] --- maven-checkstyle-plugin:2.12.1:check (validate) @
> flink-streaming-examples ---
> >> [INFO]
> >> [INFO]
> >> [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @
> flink-streaming-examples ---
> >> [INFO]
> >> [INFO] --- build-helper-maven-plugin:1.7:add-source (add-source) @
> flink-streaming-examples ---
> >> [INFO] Source directory:
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/main/scala
> added.
> >> [INFO]
> >> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
> flink-streaming-examples ---
> >> [INFO]
> >> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
> flink-streaming-examples ---
> >> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >> [INFO] skip non existing resourceDirectory
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/main/resources
> >> [INFO] Copying 3 resources
> >> [INFO] Copying 3 resources
> >> [INFO]
> >> [INFO] --- scala-maven-plugin:3.1.4:compile (scala-compile-first) @
> flink-streaming-examples ---
> >> [INFO] Nothing to compile - all classes are up to date
> >> [INFO]
> >> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
> flink-streaming-examples ---
> >> [INFO] Nothing to compile - all classes are up to date
> >> [INFO]
> >> [INFO] --- build-helper-maven-plugin:1.7:add-test-source
> (add-test-source) @ flink-streaming-examples ---
> >> [INFO] Test Source directory:
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/scala
> added.
> >> [INFO]
> >> [INFO] --- maven-resources-plugin:2.6:testResources
> (default-testResources) @ flink-streaming-examples ---
> >> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >> [INFO] skip non existing resourceDirectory
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/resources
> >> [INFO] Copying 3 resources
> >> [INFO] Copying 3 resources
> >> [INFO]
> >> [INFO] --- scala-maven-plugin:3.1.4:testCompile (scala-test-compile) @
> flink-streaming-examples ---
> >> [INFO]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java:-1:
> info: compiling
> >> [INFO] Compiling 2 source files to
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/target/test-classes
> at 1424877127030
> >> [INFO] compiler plugin:
> BasicArtifact(org.scalamacros,paradise_2.10.4,2.0.1,null)
> >> [INFO] prepare-compile in 0 s
> >> [INFO] compile in 1 s
> >> [INFO]
> >> [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile)
> @ flink-streaming-examples ---
> >> [INFO] Changes detected - recompiling the module!
> >> [INFO] Compiling 2 source files to
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/target/test-classes
> >> [INFO] -------------------------------------------------------------
> >> [ERROR] COMPILATION ERROR :
> >> [INFO] -------------------------------------------------------------
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[22,39]
> cannot find symbol
> >>   symbol:   class StreamingProgramTestBase
> >>   location: package org.apache.flink.streaming.util
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[25,40]
> cannot find symbol
> >>   symbol: class StreamingProgramTestBase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[23,39]
> cannot find symbol
> >>   symbol:   class StreamingProgramTestBase
> >>   location: package org.apache.flink.streaming.util
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[25,38]
> cannot find symbol
> >>   symbol: class StreamingProgramTestBase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[32,28]
> cannot find symbol
> >>   symbol:   method createTempFile(java.lang.String,java.lang.String)
> >>   location: class
> org.apache.flink.streaming.examples.test.PojoExampleITCase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[33,30]
> cannot find symbol
> >>   symbol:   method getTempDirPath(java.lang.String)
> >>   location: class
> org.apache.flink.streaming.examples.test.PojoExampleITCase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[30,9]
> method does not override or implement a method from a supertype
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[38,17]
> cannot find symbol
> >>   symbol:   method
> compareResultsByLinesInMemory(java.lang.String,java.lang.String)
> >>   location: class
> org.apache.flink.streaming.examples.test.PojoExampleITCase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[36,9]
> method does not override or implement a method from a supertype
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[41,9]
> method does not override or implement a method from a supertype
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[32,28]
> cannot find symbol
> >>   symbol:   method createTempFile(java.lang.String,java.lang.String)
> >>   location: class
> org.apache.flink.streaming.examples.test.WordCountITCase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[33,30]
> cannot find symbol
> >>   symbol:   method getTempDirPath(java.lang.String)
> >>   location: class
> org.apache.flink.streaming.examples.test.WordCountITCase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[30,9]
> method does not override or implement a method from a supertype
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[38,17]
> cannot find symbol
> >>   symbol:   method
> compareResultsByLinesInMemory(java.lang.String,java.lang.String)
> >>   location: class
> org.apache.flink.streaming.examples.test.WordCountITCase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[36,9]
> method does not override or implement a method from a supertype
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[41,9]
> method does not override or implement a method from a supertype
> >> [INFO] 16 errors
> >> [INFO] -------------------------------------------------------------
> >> [INFO]
> ------------------------------------------------------------------------
> >> [INFO] BUILD FAILURE
> >> [INFO]
> ------------------------------------------------------------------------
> >> [INFO] Total time: 22.807s
> >> [INFO] Finished at: Wed Feb 25 16:12:08 CET 2015
> >> [INFO] Final Memory: 45M/504M
> >> [INFO]
> ------------------------------------------------------------------------
> >> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile
> (default-testCompile) on project flink-streaming-examples: Compilation
> failure: Compilation failure:
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[22,39]
> cannot find symbol
> >> [ERROR] symbol:   class StreamingProgramTestBase
> >> [ERROR] location: package org.apache.flink.streaming.util
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[25,40]
> cannot find symbol
> >> [ERROR] symbol: class StreamingProgramTestBase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[23,39]
> cannot find symbol
> >> [ERROR] symbol:   class StreamingProgramTestBase
> >> [ERROR] location: package org.apache.flink.streaming.util
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[25,38]
> cannot find symbol
> >> [ERROR] symbol: class StreamingProgramTestBase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[32,28]
> cannot find symbol
> >> [ERROR] symbol:   method
> createTempFile(java.lang.String,java.lang.String)
> >> [ERROR] location: class
> org.apache.flink.streaming.examples.test.PojoExampleITCase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[33,30]
> cannot find symbol
> >> [ERROR] symbol:   method getTempDirPath(java.lang.String)
> >> [ERROR] location: class
> org.apache.flink.streaming.examples.test.PojoExampleITCase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[30,9]
> method does not override or implement a method from a supertype
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[38,17]
> cannot find symbol
> >> [ERROR] symbol:   method
> compareResultsByLinesInMemory(java.lang.String,java.lang.String)
> >> [ERROR] location: class
> org.apache.flink.streaming.examples.test.PojoExampleITCase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[36,9]
> method does not override or implement a method from a supertype
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/PojoExampleITCase.java:[41,9]
> method does not override or implement a method from a supertype
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[32,28]
> cannot find symbol
> >> [ERROR] symbol:   method
> createTempFile(java.lang.String,java.lang.String)
> >> [ERROR] location: class
> org.apache.flink.streaming.examples.test.WordCountITCase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[33,30]
> cannot find symbol
> >> [ERROR] symbol:   method getTempDirPath(java.lang.String)
> >> [ERROR] location: class
> org.apache.flink.streaming.examples.test.WordCountITCase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[30,9]
> method does not override or implement a method from a supertype
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[38,17]
> cannot find symbol
> >> [ERROR] symbol:   method
> compareResultsByLinesInMemory(java.lang.String,java.lang.String)
> >> [ERROR] location: class
> org.apache.flink.streaming.examples.test.WordCountITCase
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[36,9]
> method does not override or implement a method from a supertype
> >> [ERROR]
> /home/mjsax/workspace_flink/dummy/flink/flink-staging/flink-streaming/flink-streaming-examples/src/test/java/org/apache/flink/streaming/examples/test/WordCountITCase.java:[41,9]
> method does not override or implement a method from a supertype
> >> [ERROR] -> [Help 1]
> >> [ERROR]
> >> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> >> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >> [ERROR]
> >> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> >> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message