You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try mvn clean install with Java 8.171, I get:
[INFO] 17 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.659 s
[INFO] Finished at: 2018-07-05T21:01:49+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project atomic_swap: Compilation failure: Compilation failure:
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/atomic_swap/App.java:[132,19] lambda expressions are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable lambda expressions)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/atomic_swap/App.java:[157,24] method references are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable method references)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/fsm/GeneralFSM.java:[121,33] method references are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable method references)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/fsm/GeneralFSM.java:[135,20] lambda expressions are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable lambda expressions)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/fsm/GeneralFSM.java:[226,43] multi-catch statement is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable multi-catch statement)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/atomic_swap/AtomicSwapFSM.java:[94,19] lambda expressions are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable lambda expressions)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/atomic_swap/AtomicSwapFSM.java:[214,33] method references are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable method references)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/atomic_swap/AtomicSwapFSM.java:[243,17] try-with-resources is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable try-with-resources)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/atomic_swap/gui/HomePageController.java:[127,19] lambda expressions are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable lambda expressions)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/atomic_swap/workers/AbstractBitcoinFamilyWorker.java:[118,27] lambda expressions are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable lambda expressions)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/atomic_swap/workers/AbstractBitcoinFamilyWorker.java:[195,33] method references are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable method references)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/atomic_swap/workers/AbstractBitcoinFamilyWorker.java:[555,49] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/atomic_swap/gui/FormValidator.java:[23,39] multi-catch statement is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable multi-catch statement)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/atomic_swap/workers/Worker.java:[120,5] default methods are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable default methods)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/atomic_swap/fsm/TestFSM.java:[41,19] lambda expressions are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable lambda expressions)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/atomic_swap/fsm/TestFSM.java:[42,24] method references are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable method references)
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/fsm/FSM.java:[38,5] default methods are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable default methods)
[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
So I add to pom.xml file java version 8 as target:
But I get still some error messages with mvn clean install:
[INFO] 2 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/fsm/GeneralFSM.java:[151,23] no suitable method found for invokeAll(java.util.List<java.util.concurrent.Callable<?>>)
method java.util.concurrent.ExecutorService.<T>invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>>) is not applicable
(cannot infer type-variable(s) T
(argument mismatch; java.util.List<java.util.concurrent.Callable<?>> cannot be converted to java.util.Collection<? extends java.util.concurrent.Callable<T>>))
method java.util.concurrent.ExecutorService.<T>invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>>,long,java.util.concurrent.TimeUnit) is not applicable
(cannot infer type-variable(s) T
(actual and formal argument lists differ in length))
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/fsm/GeneralFSM.java:[153,23] no suitable method found for invokeAny(java.util.List<java.util.concurrent.Callable<?>>)
method java.util.concurrent.ExecutorService.<T>invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>>) is not applicable
(cannot infer type-variable(s) T
(argument mismatch; java.util.List<java.util.concurrent.Callable<?>> cannot be converted to java.util.Collection<? extends java.util.concurrent.Callable<T>>))
method java.util.concurrent.ExecutorService.<T>invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>>,long,java.util.concurrent.TimeUnit) is not applicable
(cannot infer type-variable(s) T
(actual and formal argument lists differ in length))
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.081 s
[INFO] Finished at: 2018-07-05T21:16:14+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project atomic_swap: Compilation failure: Compilation failure:
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/fsm/GeneralFSM.java:[151,23] no suitable method found for invokeAll(java.util.List<java.util.concurrent.Callable<?>>)
[ERROR] method java.util.concurrent.ExecutorService.<T>invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>>) is not applicable
[ERROR] (cannot infer type-variable(s) T
[ERROR] (argument mismatch; java.util.List<java.util.concurrent.Callable<?>> cannot be converted to java.util.Collection<? extends java.util.concurrent.Callable<T>>))
[ERROR] method java.util.concurrent.ExecutorService.<T>invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>>,long,java.util.concurrent.TimeUnit) is not applicable
[ERROR] (cannot infer type-variable(s) T
[ERROR] (actual and formal argument lists differ in length))
[ERROR] /Users/bioharz/git/atomic-swap/minexcoin-atomicswap/src/main/java/com/minexcoin/fsm/GeneralFSM.java:[153,23] no suitable method found for invokeAny(java.util.List<java.util.concurrent.Callable<?>>)
[ERROR] method java.util.concurrent.ExecutorService.<T>invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>>) is not applicable
[ERROR] (cannot infer type-variable(s) T
[ERROR] (argument mismatch; java.util.List<java.util.concurrent.Callable<?>> cannot be converted to java.util.Collection<? extends java.util.concurrent.Callable<T>>))
[ERROR] method java.util.concurrent.ExecutorService.<T>invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>>,long,java.util.concurrent.TimeUnit) is not applicable
[ERROR] (cannot infer type-variable(s) T
[ERROR] (actual and formal argument lists differ in length))
[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
The text was updated successfully, but these errors were encountered:
When I try mvn clean install with Java 8.171, I get:
So I add to pom.xml file java version 8 as target:
But I get still some error messages with mvn clean install:
The text was updated successfully, but these errors were encountered: