Could Not Parse Error Message Symbol Method
Contents |
here for a quick overview of the site Help Center Detailed answers maven could not parse error message symbol to any questions you might have Meta Discuss the workings cannot find symbol maven and policies of this site About Us Learn more about Stack Overflow the company Business Learn
Maven-compiler-plugin
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
Maven-compiler-plugin Maven
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, maven-compiler-plugin java 8 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.pr
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 programmers, just like you, helping each other. Join them; it only takes a minute: Sign up maven “cannot find symbol” http://stackoverflow.com/questions/33252654/maven-build-failure-couldnot-parse-error-message-method-format message unhelpful up vote 46 down vote favorite 3 This is a really simple question, and it's probably a setting somewhere I don't know about, but Google is being particularly unhelpful for this question, giving results about compilation errors, not how to change compilation error messages. When I build my project with maven, it will give me error messages formatted roughly as follows: [ERROR] /path/to/source/Main.java:[13,8] http://stackoverflow.com/questions/14164386/maven-cannot-find-symbol-message-unhelpful error: cannot find symbol When I build with ant or javac, it will actually tell me the symbol that it can't find in the error message. maven gives me a line number and character position, but displaying the actual symbol would be more helpful. The line above is the only line given for each of the "cannot find symbol" errors. There is no line above or below that gives the symbol. I imagine there has to be some way to get maven to tell me that information, but I don't know what it is. I tried the -e option, as mvn told me to try using it, but it gave a maven traceback for the error, not the actual symbol. Any help? Here's the output of mvn --version Apache Maven 3.0.4 (rNON-CANONICAL_2012-10-24_11-25_mockbuild; 2012-10-24 07:25:04-0400) Maven home: /usr/share/maven Java version: 1.7.0_09-icedtea, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.6.6-1.fc17.x86_64", arch: "amd64", family: "unix" And here's an example (unhelpful) error message, exactly as output by maven (just with directories shortened): [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /path/to/source/SoundEngineFilePanel.java:[33,8] error: cannot find symbol [ERROR] class Sound
Support Search GitHub This repository Watch 10 https://github.com/Parquet/parquet-mr/issues/317 Star 5 Fork 5 cltl/EventCoreference Code Issues 1 Pull requests 0 Projects 0 Wiki Pulse Graphs New issue installation failure #1 Closed vanatteveldt opened this Issue Apr 18, 2016 · could not 1 comment Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 1 participant vanatteveldt commented Apr 18, 2016 I get an error after cloning the repository and calling install.sh: #1. compiling the library from could not parse source code and dependencies [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building EventCoreference and NAF2SEM-GRASP v3.0 [INFO] ------------------------------------------------------------------------ [... snip ...] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15.029s [INFO] Finished at: Mon Apr 18 12:47:33 CEST 2016 [INFO] Final Memory: 17M/213M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0:compile (default-compile) on project EventCoreference: Compilation failure: Compilation failure: [ERROR] /data/wva/newsreader_pipe_nl/modules/EventCoreference/src/main/java/eu/newsreader/eventcoreference/storyline/JsonStoryUtil.java:[14,0] error: cannot find symbol [ERROR] [ERROR] could not parse error message: symbol: static makeTripleQuery [ERROR] location: class [ERROR] /data/wva/newsreader_pipe_nl/modules/EventCoreference/src/main/java/eu/newsreader/eventcoreference/output/GetEventCentricGraph.java:28: error: cannot find symbol [ERROR] TrigTripleData trigTripleData = TrigTripleReader.readTripleFromTrigFile (new File(pathToTrigFile)); [ERROR] ^ [ERROR] [ERROR] could not parse error message: symbol: method readTripleFromTrigFile(File) [ERROR] location: class TrigTripleReader [ERROR] /data/wva/newsreader_pipe_nl/module
Support Search GitHub This repository Watch 86 Star 377 Fork 286 Parquet/parquet-mr Code Issues 74 Pull requests 0 Projects 0 Wiki Pulse Graphs New issue Build failure #317 Open posix4e opened this Issue Mar 3, 2014 · 1 comment Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants posix4e commented Mar 3, 2014 I think we forgot to checkin TestProto when merging mr-proto. [mkdir] Created dir: /home/posix4e/projects/parquet-protobuf/parquet-mr/parquet-protobuf/target/generated-test-sources [mkdir] Created dir: /home/posix4e/projects/parquet-protobuf/parquet-mr/parquet-protobuf/target/generated-test-sources/java [INFO] Executed tasks [INFO] Registering compile source root /home/posix4e/projects/parquet-protobuf/parquet-mr/parquet-protobuf/target/generated-sources/java [INFO] [INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) @ parquet-protobuf --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ parquet-protobuf --- [INFO] Compiling 8 source files to /home/posix4e/projects/parquet-protobuf/parquet-mr/parquet-protobuf/target/test-classes [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Parquet MR ........................................ SUCCESS [0.598s] [INFO] Parquet Common .................................... SUCCESS [1.782s] [INFO] Parquet Generator ................................. SUCCESS [0.500s] [INFO] Parquet Encodings ................................. SUCCESS [4.689s] [INFO] Parquet Column .................................... SUCCESS [6.270s] [INFO] Parquet Jackson ................................... SUCCESS [0.730s] [INFO] Parquet Hadoop .................................... SUCCESS [3.020s] [INFO] Parquet Avro ...................................... SUCCESS [2.214s] [INFO] Parquet Pig ....................................... SUCCESS [2.843s] [INFO] Parquet Thrift .................................... SUCCES