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-25 Thread Barrie Treloar
Well, Eclipse is not installed on my daily-build server, so I guess it has nothing to do with Eclipse. ;-) I guess when Maven encounters the missing-dependency compilation error, it doesn't stop compiling immediately, and it tries its best to compile other unrelated modules. When I compile

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

2014-02-20 Thread Stephen Connolly
On 20 February 2014 01:58, LevskiWeng levskiw...@gmail.com wrote: 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

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

2014-02-20 Thread Ron Wheeler
On 20/02/2014 4:38 AM, Stephen Connolly wrote: On 20 February 2014 01:58, LevskiWeng levskiw...@gmail.com wrote: 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

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

2014-02-20 Thread Wayne Fay
It's because my code depends some other modules which I didn't put it into pom.xml explicitly. And I'm adding them into the corresponding pom.xml. Thank you for directing me back to the right track! Glad you sorted that out! :) However, I'm curious that I succeed to compile the project after

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-19 Thread Martin Gainty
Date: Wed, 19 Feb 2014 17:58:13 -0800 From: levskiw...@gmail.com To: users@maven.apache.org Subject: Re: Why does Maven fail to compile my project occasionally? Wayne Fay wrote Maven calls out to your system JDK to do the compilation step. With the [ERROR] lines you provided

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 Wayne Fay
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. Maven calls out to your system JDK to do the compilation step. With the [ERROR] lines you provided

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

2014-02-16 Thread Ron Wheeler
Is it possible that you have more than 1 version of Java installed? I use Eclipse/STS, have all the Maven tools that I need to build with Maven so I may suggest some things that you may not have, with m2 installed separately. 1) Look in the project properties and make sure that you have

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-15 Thread Robert Scholte
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 added. If you do so, it's

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

2014-02-15 Thread Stephen Connolly
On Saturday, 15 February 2014, LevskiWeng levskiw...@gmail.com wrote: 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

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

2014-02-15 Thread Martin Gainty
To: users@maven.apache.org Subject: Re: Why does Maven fail to compile my project occasionally? Date: Sat, 15 Feb 2014 11:45:57 +0100 From: rfscho...@apache.org My code is correct because I could successfully build the whole project in Eclipse again and again. This is 100% true. Within

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

2014-02-14 Thread Ron Wheeler
Since the error message is in Chinese it is a bit difficult to tell. Why are you deleting your local repo? Is it possible that you are using different compilers? How is TYPE_AGENT_ID source com compiles - same pom? On 14/02/2014 9:12 AM, Levski Weng wrote: Hello, I'm new to Maven. Currently I

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 Ron Wheeler
clean should delete your compiler output and force a new compile. The repo has nothing to do with this. Ron On 14/02/2014 10:08 AM, LevskiWeng wrote: Sorry for that, I forgot to translate all the Chinese characters into English, those Chinese characters have the same meaning of 'Cannot find

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 as the

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

2014-02-14 Thread Ron Wheeler
Where is the compiler version and options line? Ron On 14/02/2014 10:36 AM, LevskiWeng wrote: 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

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