MacBook-Pro:agent-alert yol$ mvn install -Dmaven.test.failure.ignore=true
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building alert-agent 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ alert-agent ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ alert-agent ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 32 source files to /Users/yol/workspace/agent-alert/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/yol/workspace/agent-alert/src/main/java/com/upyoo/agent/DataService/impl/ProtocolCollector.java:[58,57] multi-catch statement is not supported in -source 1.5
(use -source 7 or higher to enable multi-catch statement)
[ERROR] /Users/yol/workspace/agent-alert/src/main/java/com/upyoo/agent/DataService/impl/PingCollector.java:[49,57] multi-catch statement is not supported in -source 1.5
(use -source 7 or higher to enable multi-catch statement)
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.406 s
[INFO] Finished at: 2015-03-17T17:44:02+08:00
[INFO] Final Memory: 9M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project alert-agent: Compilation failure: Compilation failure:
[ERROR] /Users/yol/workspace/agent-alert/src/main/java/com/upyoo/agent/DataService/impl/ProtocolCollector.java:[58,57] multi-catch statement is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable multi-catch statement)
[ERROR] /Users/yol/workspace/agent-alert/src/main/java/com/upyoo/agent/DataService/impl/PingCollector.java:[49,57] multi-catch statement is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable multi-catch statement)
[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
记一次Maven 打包multi-catch statement is not supported in -source 1.5 [ERROR] (use -source 7 or higher to
最新推荐文章于 2024-08-06 12:34:23 发布