Re: Why does Maven fail to compile my project occasionally?

2014-02-25 Thread LevskiWeng
Wayne Fay wrote I rarely use any parameters as you have done here. Can you try a simple mvn clean install and see how that goes? Also -U and -X may be useful shortcuts for you to know about. And I agree with Stephen and Ron - Eclipse sometimes does helpful things which produce hard to

Re: Why does Maven fail to compile my project occasionally?

2014-02-19 Thread LevskiWeng
Wayne Fay wrote Maven calls out to your system JDK to do the compilation step. With the [ERROR] lines you provided previously, Maven is simply passing along the error that was reported by javac. I bet, if you constructed the proper javac call (which can be seen in Maven's logs if you use -X

Re: Why does Maven fail to compile my project occasionally?

2014-02-16 Thread LevskiWeng
Thanks for your suggestion. But I don't think it's the Jenkins fault because: I've written a Windows batch file to invoke Maven to build the project before I choose Jenkins as my daily build system. And at that time I got the same Maven error as I described in this thread. I'll post some other

Re: Why does Maven fail to compile my project occasionally?

2014-02-16 Thread LevskiWeng
Robert Scholte-4 wrote My code is correct because I could successfully build the whole project in Eclipse again and again. This is 100% true. Within Eclipse you can manually add libraries. Actually, if you create your first JUnit test, Eclipse will ask if the JUnit4 library should be

Re: Why does Maven fail to compile my project occasionally?

2014-02-14 Thread LevskiWeng
Sorry for that, I forgot to translate all the Chinese characters into English, those Chinese characters have the same meaning of 'Cannot find the symbol'. I will change the compilers to javac and see what will happen. I'll post my result later. The reason why I'm deleting my local repository is

Re: Why does Maven fail to compile my project occasionally?

2014-02-14 Thread LevskiWeng
After changing the compiler to javac, and add verbose parameters as the following: the problem remains the same, but the console output reveals the compile procedure in details, could you help me to find what is missing? Thanks. BEGIN ... [DEBUG] Command line options: [DEBUG] -d

Re: Why does Maven fail to compile my project occasionally?

2014-02-14 Thread LevskiWeng
The parameters is missing, sorry: clean install -Dmaven.test.skip=true --update-snapshots --batch-mode --fail-fast --debug -Dmaven.compiler.forceJavacCompilerUse=true -Dmaven.compiler.verbose=true LevskiWeng wrote After changing the compiler to javac, and add verbose parameters

Re: Why does Maven fail to compile my project occasionally?

2014-02-14 Thread LevskiWeng
Parsing POMs Downloaded artifact http://192.168.4.172:8081/nexus/content/groups/public/com/centerm/system/systempom/1.0.0-SNAPSHOT/maven-metadata.xml Downloaded artifact http://192.168.4.172:8081/nexus/content/groups/public/com/centerm/pom/1.0.0-SNAPSHOT/maven-metadata.xml Modules changed,

Re: Why does Maven fail to compile my project occasionally?

2014-02-14 Thread LevskiWeng
Parsing POMs Downloaded artifact http://192.168.4.172:8081/nexus/content/groups/public/com/xxx/system/systempom/1.0.0-SNAPSHOT/maven-metadata.xml Downloaded artifact http://192.168.4.172:8081/nexus/content/groups/public/com/xxx/pom/1.0.0-SNAPSHOT/maven-metadata.xml Modules changed, recalculating