Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/home/zaoqi/pkgs-src/rembulan/rembulan-tests/src/test/java/net/sandius/rembulan/testenv/TestBase.java:[48,69] method references are not supported in -source 1.7 #5

Open
zaoqi opened this issue May 5, 2019 · 0 comments

Comments

@zaoqi
Copy link

zaoqi commented May 5, 2019

$ mvn clean package -DskipTests -Dmaven.javadoc.skip=true
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for net.sandius.rembulan:rembulan-runtime:jar:0.1-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ net.sandius.rembulan:rembulan-runtime:${project.parent.version}, /home/zaoqi/pkgs-src/rembulan/rembulan-runtime/pom.xml, line 16, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for net.sandius.rembulan:rembulan-compiler:jar:0.1-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ net.sandius.rembulan:rembulan-compiler:${project.parent.version}, /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/pom.xml, line 16, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for net.sandius.rembulan:rembulan-stdlib:jar:0.1-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ net.sandius.rembulan:rembulan-stdlib:${project.parent.version}, /home/zaoqi/pkgs-src/rembulan/rembulan-stdlib/pom.xml, line 16, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for net.sandius.rembulan:rembulan-luajava-compat:jar:0.1-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ net.sandius.rembulan:rembulan-luajava-compat:${project.parent.version}, /home/zaoqi/pkgs-src/rembulan/rembulan-luajava-compat/pom.xml, line 16, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for net.sandius.rembulan:rembulan-tests:jar:0.1-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ net.sandius.rembulan:rembulan-tests:${project.parent.version}, /home/zaoqi/pkgs-src/rembulan/rembulan-tests/pom.xml, line 16, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for net.sandius.rembulan:rembulan-examples:jar:0.1-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ net.sandius.rembulan:rembulan-examples:${project.parent.version}, /home/zaoqi/pkgs-src/rembulan/rembulan-examples/pom.xml, line 16, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for net.sandius.rembulan:rembulan-standalone:jar:0.1-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ net.sandius.rembulan:rembulan-standalone:${project.parent.version}, /home/zaoqi/pkgs-src/rembulan/rembulan-standalone/pom.xml, line 16, 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] Inspecting build with total of 9 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 8 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Rembulan parent POM                                                [pom]
[INFO] Rembulan Runtime                                                   [jar]
[INFO] Rembulan Compiler                                                  [jar]
[INFO] Rembulan Standard Library                                          [jar]
[INFO] Rembulan LuaJava compatibility library                             [jar]
[INFO] Rembulan tests                                                     [jar]
[INFO] Rembulan examples                                                  [jar]
[INFO] Rembulan Standalone                                                [jar]
[INFO] Rembulan                                                           [pom]
[INFO] 
[INFO] ----------------< net.sandius.rembulan:rembulan-parent >----------------
[INFO] Building Rembulan parent POM 0.1-SNAPSHOT                          [1/9]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rembulan-parent ---
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default) @ rembulan-parent ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ rembulan-parent ---
[INFO] Skipping javadoc generation
[INFO] 
[INFO] ---------------< net.sandius.rembulan:rembulan-runtime >----------------
[INFO] Building Rembulan Runtime 0.1-SNAPSHOT                             [2/9]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rembulan-runtime ---
[INFO] Deleting /home/zaoqi/pkgs-src/rembulan/rembulan-runtime/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ rembulan-runtime ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/zaoqi/pkgs-src/rembulan/rembulan-runtime/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ rembulan-runtime ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 95 source files to /home/zaoqi/pkgs-src/rembulan/rembulan-runtime/target/classes
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default) @ rembulan-runtime ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 95 source files to /home/zaoqi/pkgs-src/rembulan/rembulan-runtime/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ rembulan-runtime ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/zaoqi/pkgs-src/rembulan/rembulan-runtime/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ rembulan-runtime ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ rembulan-runtime ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ rembulan-runtime ---
[INFO] Building jar: /home/zaoqi/pkgs-src/rembulan/rembulan-runtime/target/rembulan-runtime-0.1-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ rembulan-runtime ---
[INFO] Skipping javadoc generation
[INFO] 
[INFO] ---------------< net.sandius.rembulan:rembulan-compiler >---------------
[INFO] Building Rembulan Compiler 0.1-SNAPSHOT                            [3/9]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rembulan-compiler ---
[INFO] Deleting /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/target
[INFO] 
[INFO] --- javacc-maven-plugin:2.6:javacc (javacc) @ rembulan-compiler ---
[WARNING] File encoding for grammars has not been configured, using platform default encoding, i.e. build is platform dependent!
Java Compiler Compiler Version 6.1_2 (Parser Generator)
(type "javacc" with no arguments for help)
Reading from file /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/src/main/javacc/Parser.jj . . .
Note: UNICODE_INPUT option is specified. Please make sure you create the parser/lexer using a Reader with the correct character encoding.
File "TokenMgrError.java" does not exist.  Will create one.
File "ParseException.java" does not exist.  Will create one.
File "Token.java" does not exist.  Will create one.
File "SimpleCharStream.java" does not exist.  Will create one.
Parser generated successfully.
[INFO] Processed 1 grammar
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ rembulan-compiler ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ rembulan-compiler ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 211 source files to /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/target/classes
[WARNING] /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/src/main/java/net/sandius/rembulan/compiler/analysis/types/TypeSeq.java: Some input files use or override a deprecated API.
[WARNING] /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/src/main/java/net/sandius/rembulan/compiler/analysis/types/TypeSeq.java: Recompile with -Xlint:deprecation for details.
[WARNING] /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/src/main/java/net/sandius/rembulan/compiler/gen/asm/InvokeMethod.java: Some input files use unchecked or unsafe operations.
[WARNING] /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/src/main/java/net/sandius/rembulan/compiler/gen/asm/InvokeMethod.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default) @ rembulan-compiler ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 211 source files to /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/target/classes
[WARNING] /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/src/main/java/net/sandius/rembulan/compiler/analysis/types/TypeSeq.java: Some input files use or override a deprecated API.
[WARNING] /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/src/main/java/net/sandius/rembulan/compiler/analysis/types/TypeSeq.java: Recompile with -Xlint:deprecation for details.
[WARNING] /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/src/main/java/net/sandius/rembulan/compiler/gen/asm/InvokeMethod.java: Some input files use unchecked or unsafe operations.
[WARNING] /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/src/main/java/net/sandius/rembulan/compiler/gen/asm/InvokeMethod.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ rembulan-compiler ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ rembulan-compiler ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ rembulan-compiler ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ rembulan-compiler ---
[INFO] Building jar: /home/zaoqi/pkgs-src/rembulan/rembulan-compiler/target/rembulan-compiler-0.1-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ rembulan-compiler ---
[INFO] Skipping javadoc generation
[INFO] 
[INFO] ----------------< net.sandius.rembulan:rembulan-stdlib >----------------
[INFO] Building Rembulan Standard Library 0.1-SNAPSHOT                    [4/9]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rembulan-stdlib ---
[INFO] Deleting /home/zaoqi/pkgs-src/rembulan/rembulan-stdlib/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ rembulan-stdlib ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/zaoqi/pkgs-src/rembulan/rembulan-stdlib/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ rembulan-stdlib ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 41 source files to /home/zaoqi/pkgs-src/rembulan/rembulan-stdlib/target/classes
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default) @ rembulan-stdlib ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 41 source files to /home/zaoqi/pkgs-src/rembulan/rembulan-stdlib/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ rembulan-stdlib ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/zaoqi/pkgs-src/rembulan/rembulan-stdlib/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ rembulan-stdlib ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ rembulan-stdlib ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ rembulan-stdlib ---
[INFO] Building jar: /home/zaoqi/pkgs-src/rembulan/rembulan-stdlib/target/rembulan-stdlib-0.1-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ rembulan-stdlib ---
[INFO] Skipping javadoc generation
[INFO] 
[INFO] ------------< net.sandius.rembulan:rembulan-luajava-compat >------------
[INFO] Building Rembulan LuaJava compatibility library 0.1-SNAPSHOT       [5/9]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rembulan-luajava-compat ---
[INFO] Deleting /home/zaoqi/pkgs-src/rembulan/rembulan-luajava-compat/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ rembulan-luajava-compat ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ rembulan-luajava-compat ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 14 source files to /home/zaoqi/pkgs-src/rembulan/rembulan-luajava-compat/target/classes
[WARNING] /home/zaoqi/pkgs-src/rembulan/rembulan-luajava-compat/src/main/java/net/sandius/rembulan/lib/luajava/LuaJavaLib.java: /home/zaoqi/pkgs-src/rembulan/rembulan-luajava-compat/src/main/java/net/sandius/rembulan/lib/luajava/LuaJavaLib.java uses unchecked or unsafe operations.
[WARNING] /home/zaoqi/pkgs-src/rembulan/rembulan-luajava-compat/src/main/java/net/sandius/rembulan/lib/luajava/LuaJavaLib.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default) @ rembulan-luajava-compat ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 14 source files to /home/zaoqi/pkgs-src/rembulan/rembulan-luajava-compat/target/classes
[WARNING] /home/zaoqi/pkgs-src/rembulan/rembulan-luajava-compat/src/main/java/net/sandius/rembulan/lib/luajava/LuaJavaLib.java: /home/zaoqi/pkgs-src/rembulan/rembulan-luajava-compat/src/main/java/net/sandius/rembulan/lib/luajava/LuaJavaLib.java uses unchecked or unsafe operations.
[WARNING] /home/zaoqi/pkgs-src/rembulan/rembulan-luajava-compat/src/main/java/net/sandius/rembulan/lib/luajava/LuaJavaLib.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ rembulan-luajava-compat ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/zaoqi/pkgs-src/rembulan/rembulan-luajava-compat/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ rembulan-luajava-compat ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ rembulan-luajava-compat ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ rembulan-luajava-compat ---
[INFO] Building jar: /home/zaoqi/pkgs-src/rembulan/rembulan-luajava-compat/target/rembulan-luajava-compat-0.1-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ rembulan-luajava-compat ---
[INFO] Skipping javadoc generation
[INFO] 
[INFO] ----------------< net.sandius.rembulan:rembulan-tests >-----------------
[INFO] Building Rembulan tests 0.1-SNAPSHOT                               [6/9]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rembulan-tests ---
[INFO] Deleting /home/zaoqi/pkgs-src/rembulan/rembulan-tests/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ rembulan-tests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/zaoqi/pkgs-src/rembulan/rembulan-tests/src/main/resources
[INFO] 
[INFO] --- scala-maven-plugin:3.2.2:add-source (scala-compile-first) @ rembulan-tests ---
[INFO] Add Source directory: /home/zaoqi/pkgs-src/rembulan/rembulan-tests/src/main/scala
[INFO] Add Test Source directory: /home/zaoqi/pkgs-src/rembulan/rembulan-tests/src/test/scala
[INFO] 
[INFO] --- scala-maven-plugin:3.2.2:compile (scala-compile-first) @ rembulan-tests ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ rembulan-tests ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default) @ rembulan-tests ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ rembulan-tests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 57 resources
[INFO] 
[INFO] --- scala-maven-plugin:3.2.2:testCompile (scala-test-compile) @ rembulan-tests ---
[INFO] /home/zaoqi/pkgs-src/rembulan/rembulan-tests/src/test/java:-1: info: compiling
[INFO] /home/zaoqi/pkgs-src/rembulan/rembulan-tests/src/test/scala:-1: info: compiling
[INFO] Compiling 40 source files to /home/zaoqi/pkgs-src/rembulan/rembulan-tests/target/test-classes at 1557052017244
[WARNING] warning: there were 6 deprecation warning(s); re-run with -deprecation for details
[WARNING] warning: there were 1 feature warning(s); re-run with -feature for details
[WARNING] two warnings found
[INFO] prepare-compile in 0 s
[INFO] compile in 22 s
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ rembulan-tests ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /home/zaoqi/pkgs-src/rembulan/rembulan-tests/target/test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/zaoqi/pkgs-src/rembulan/rembulan-tests/src/test/java/net/sandius/rembulan/testenv/TestBase.java:[48,69] method references are not supported in -source 1.7
  (use -source 8 or higher to enable method references)
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Rembulan 0.1-SNAPSHOT:
[INFO] 
[INFO] Rembulan parent POM ................................ SUCCESS [  1.312 s]
[INFO] Rembulan Runtime ................................... SUCCESS [  4.442 s]
[INFO] Rembulan Compiler .................................. SUCCESS [  5.081 s]
[INFO] Rembulan Standard Library .......................... SUCCESS [  1.574 s]
[INFO] Rembulan LuaJava compatibility library ............. SUCCESS [  0.314 s]
[INFO] Rembulan tests ..................................... FAILURE [ 23.102 s]
[INFO] Rembulan examples .................................. SKIPPED
[INFO] Rembulan Standalone ................................ SKIPPED
[INFO] Rembulan ........................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  37.316 s
[INFO] Finished at: 2019-05-05T18:27:19+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project rembulan-tests: Compilation failure
[ERROR] /home/zaoqi/pkgs-src/rembulan/rembulan-tests/src/test/java/net/sandius/rembulan/testenv/TestBase.java:[48,69] method references are not supported in -source 1.7
[ERROR]   (use -source 8 or higher to enable method references)
[ERROR] 
[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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :rembulan-tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant