The strangest thing that ever happened today was when I ran a simple test class through Maven. There is no problem inside the Eclipse IDE, no matter what.
My package has one JUnit test case class and a documentation class package-info.java .
I found that package-info.java somehow interfering with the Maven compiler plugin. Upon removal, the test passes normally.
When package-info.java exists in a package, Maven writes this to the log:
[ERROR] Failure executing javac, but could not parse the error: javac: invalid source release: **/*.java Usage: javac <options> <source files> use -help for a list of possible options
How can I make Maven skip package-info.java so that I can save it in the package folder?
user2050964
source share