Compilation Failure Could Not Parse Error Message
Contents |
here for a quick overview of the site Help Center Detailed answers to maven could not parse error message symbol any questions you might have Meta Discuss the workings and maven-compiler-plugin maven policies of this site About Us Learn more about Stack Overflow the company Business Learn
Maven-compiler-plugin Java 8
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Maven build failure: couldnot parse error message: method: format up vote 1 down vote favorite I am trying to build my java project with Maven, however, I got the following error: [ERROR] could not parse error message: symbol: method format(String,int,int) [ERROR] location: class String Basically it complaining that String.format method is not found I guess String.format(pathTemplate, useD8 ? 8 : 40, transactionFileNumber) The compilation works fine on OS X and CentOS but it failed with this error on Ubuntu. Here is "mvn compile -v" Apache Maven 3.0.5 Maven home: /usr/share/maven Java version: 1.7.0_79, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.13.0-61-generic", arch: "amd64", family: "unix" Any clue how I can fix this on Ubuntu 14.04? Thanks a lot. -----------------------Edit-------------------------- Output for mvn build -X [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project sales: Compilation failure: Compilation failure: [ERROR] /home/junchao/Desktop/repos/Cassandra-benchmarking/app/src/main/java/cs4224/ClientApp.java:[48,35] error: cannot find symbol [ERROR] [ERROR] could not parse error message: symbol: method format(String,int,int) [ERROR] location: class String [ERROR] /home/junchao/Desktop/repos/Cassandra-benchmarking/app/src/main/java/cs4224/ClientApp.java:171: error: cannot find symbol [ERROR] System.err.println(String.format("Type %d: Total Transa
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million http://stackoverflow.com/questions/33252654/maven-build-failure-couldnot-parse-error-message-method-format programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Maven compiler plugin: Compilation failure up vote 1 down vote favorite When I execute any goal from compile onwards, it fails to compile my ui sub pom project. Just keeping the source/dir naming very bland, sorry. But the formatting http://stackoverflow.com/questions/15488436/maven-compiler-plugin-compilation-failure is pretty much like this: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project ui: Compilation failure: Compilation failure: [ERROR] could not parse error message: [parsing started C:\Path\Of\My\Project\src\main\java\com\ui\javaFile.java] [ERROR] [parsing completed 16ms] This same error with parsing gets done for all my java source files. Later on in the spam of ERRORs it says things like: [ERROR] C:\Path\Of\My\Project\ui\src\main\java\com\ui\javaFile.java:[13,20] package javax.servlet does not exist Does this mean it's failing to compile because I lack some needed dependencies? My JAVA_HOME under Environment Variables is set to C:\Program Files\Java\jdk1.6.0_43 and my Path has %JAVA_HOME%\bin stuck to it. Also my parent pom has:
messages Natsu Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as http://maven.40175.n5.nabble.com/mvn-install-Failure-executing-javac-but-could-not-parse-error-td4568321.html Inappropriate ♦ ♦ mvn install: Failure executing javac, but could not parse error It's the first time I try using mavan and I got the following error when I issued "mvn install" (running on vista): [ERROR] Failure executing javac, but could not parse the error: C:\Users\Kaze Kun.m2\respository\org\jboss\resteasy\resteasy-jaxrs\2.2.1.GA\resteasy-jaxrs-2.2.1.GA.jar. error in opening zip file I could not googled and found some threads about needing to set the JAVA_HOME environment variable. However, this seems not the case for me since I've already set my JAVA_HOME variable at C:\Java\jdk1.6.0_24. Just wondering what can be the cause of the problem? Below is the more detail capture of the error messages from maven: [WARNING] File could not parse encoding has not been set, using platform encoding MS932, i.e. bu ild is platform dependent! [INFO] Compiling 3 source files to C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-w orkbook\ex03_1\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Failure executing javac, but could not parse the error: エラー:C:\Users\Kaze Kun.m2\repository\org\jboss\resteasy\resteasy-jaxrs\2.2.1. GA\resteasy-jaxrs-2.2.1.GA.jar の読み込みエラーです。error in opening zip file エラー 1 個 [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4:22.828s [INFO] Finished at: Sat Jul 09 11:11:17 CST 2011 [INFO] Final Memory: 3M/15M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2. 3.2:compile (default-compile) on project workbook-ex03_1: Compilation failure [ERROR] Failure executing javac, but could not parse the error: [ERROR] エラー:C:\Users\Kaze Kun.m2\repository\org\jboss\resteasy\resteasy-jaxr s\2.2.1.GA\resteasy-jaxrs-2.2.1.GA.jar の読み込みエラーです。error in opening zi p file [ERROR] エラー 1 個 [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-workbook\ex03_1> Benson Margulies