Hello, I used "javac" to compile source directly, and found that the trouble was caused by encoding. I used Windows 2000 Chinese edition(GBK encoding default), and the encoding of my source files is UTF-8. May "javac" uses GBK encoding for compile all source. I set encoding parameter to UTF-8 in maven-compiler-plugin.
Additionally, Maven can convert encoding of all files, likes native2ascii.exe in JDK? I set encoding parameter to UTF-8 in maven-resources-plugin, but the encodings of my resources file still aren't converted. How to solve the problem? a cup of Java, cheers! Sha Jiang jiangshachina wrote: > > Hi guys, > I have Web project. > In Eclipse 3.2 environment, all is OK. > But when I run "mvn compile", Maven reported some classes "need class or > interface"! > I checked the classes, all of they implements java.io.Serializable, but > the interface is in core of JDK! > Maven and Eclipse use the same JDK/JRE. > > What's wrong with the matter?! > Thanks in advance! > > a cup of Java, cheers! > Sha Jiang > -- View this message in context: http://www.nabble.com/Why-reported-%22need-class-or-interface%22--tf2697720s177.html#a7535576 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]