This is a very simple question, and it's probably a parameter that I don't know about, but Google is especially useless for this question, giving results about compilation errors, and not about how to change compilation error messages.
When I create my project using maven, it will give me error messages, formatted something like this:
[ERROR] /path/to/source/Main.java: [13.8] error: cannot find character
When I create using ant or javac, it will actually show me a character that it cannot find in the error message. maven gives me the line number and character position, but displaying the actual character would be more useful. The line above is the only line indicated for each error "cannot find a character". There is no line above or below that gives the symbol. I suppose there must be some way to get maven to tell me this information, but I don't know what it is. I tried the -e option since mvn asked him to try it, but he gave maven traceback for the error, not the actual character.
Any help?
Here is 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 is an example of a (useless) error message, just like maven output (only with shortened directories):
[INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /path/to/source/SoundEngineFilePanel.java:[33,8] error: cannot find symbol [ERROR] class SoundEngineFilePanel /path/to/source/SoundEngineFilePanel.java:[36,8] error: cannot find symbol [INFO] 2 errors [INFO] -------------------------------------------------------------
The characters that he cannot find are "fakeThing" and "fakeThing2", not SoundEngineFilePanel.
java maven settings compiler-errors
mattg Jan 04 '13 at 20:23
source share