|
View:
New views
13 Messages
—
Rating Filter:
Alert me
|
|
|
Install and build Roller trunk source code failedHi all,
I want to install and build Roller trunk source code follow the guide [1], but failed, error messages: [INFO] Roller Project - Trunk ............................ SUCCESS [14.322s] [INFO] Roller Core - Trunk ............................... SUCCESS [2:37.355s] [INFO] Roller Test Utilities - Trunk ..................... SUCCESS [2.168s] [INFO] Roller Planet Business - Trunk .................... SUCCESS [3:07.350s] [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS [8:14.548s] [INFO] Roller Weblogger Web Module - Trunk ............... FAILURE [0.888s] [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14:17.341s It seems that there is something wrong with roller-weblogger-web and roller-weblogger-webapp's classpath, in their Maven dependencies, they can not find tools.jar, shown in attach figure. I think there may be something wrong with Roller's maven configuration file and we should fix it. But now, i do not know how to handle this situation, and please help. Thank you. [1] https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse -- Best Regards ---------------------------------------------------- Tiger Gui [tigergui1990@...] |
|
|
Re: Install and build Roller trunk source code failedHello,
Try building it with the tests skipped. ..... [INFO] Reactor Summary: [INFO] [INFO] Roller Project - Trunk ............................ SUCCESS [1.046s] [INFO] Roller Core - Trunk ............................... SUCCESS [5.184s] [INFO] Roller Test Utilities - Trunk ..................... SUCCESS [2.174s] [INFO] Roller Planet Business - Trunk .................... SUCCESS [12.280s] [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS [19.094s] [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS [13.953s] [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS [10.283s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1:05.176s [INFO] Finished at: Sun Feb 05 15:06:28 GMT 2012 [INFO] Final Memory: 23M/191M [INFO] ------------------------------------------------------------------------ On 5 February 2012 13:18, Tiger Gui <tigergui1990@...> wrote: > Hi all, > > I want to install and build Roller trunk source code follow the guide > [1], but failed, error messages: > > [INFO] Roller Project - Trunk ............................ SUCCESS > [14.322s] > [INFO] Roller Core - Trunk ............................... SUCCESS > [2:37.355s] > [INFO] Roller Test Utilities - Trunk ..................... SUCCESS [2.168s] > [INFO] Roller Planet Business - Trunk .................... SUCCESS > [3:07.350s] > [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS > [8:14.548s] > [INFO] Roller Weblogger Web Module - Trunk ............... FAILURE [0.888s] > [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 14:17.341s > > It seems that there is something wrong with roller-weblogger-web and > roller-weblogger-webapp's classpath, in their Maven dependencies, they > can not find tools.jar, shown in attach figure. I think there may be > something wrong with Roller's maven configuration file and we should > fix it. But now, i do not know how to handle this situation, and > please help. Thank you. > > [1] > https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse > > -- > Best Regards > ---------------------------------------------------- > Tiger Gui [tigergui1990@...] > |
|
|
Re: Install and build Roller trunk source code failedSorry, i am not very clear how to build it with the tests skipped, i
use Eclipse run as -> maven install to build the trunk, how to skip the tests ? Thank you 2012/2/5 Greg Huber <gregh3269@...>: > Hello, > > Try building it with the tests skipped. > > ..... > > [INFO] Reactor Summary: > [INFO] > [INFO] Roller Project - Trunk ............................ SUCCESS [1.046s] > [INFO] Roller Core - Trunk ............................... SUCCESS [5.184s] > [INFO] Roller Test Utilities - Trunk ..................... SUCCESS [2.174s] > [INFO] Roller Planet Business - Trunk .................... SUCCESS [12.280s] > [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS [19.094s] > [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS [13.953s] > [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS [10.283s] > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 1:05.176s > [INFO] Finished at: Sun Feb 05 15:06:28 GMT 2012 > [INFO] Final Memory: 23M/191M > [INFO] > ------------------------------------------------------------------------ > > > > > On 5 February 2012 13:18, Tiger Gui <tigergui1990@...> wrote: > >> Hi all, >> >> I want to install and build Roller trunk source code follow the guide >> [1], but failed, error messages: >> >> [INFO] Roller Project - Trunk ............................ SUCCESS >> [14.322s] >> [INFO] Roller Core - Trunk ............................... SUCCESS >> [2:37.355s] >> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS [2.168s] >> [INFO] Roller Planet Business - Trunk .................... SUCCESS >> [3:07.350s] >> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS >> [8:14.548s] >> [INFO] Roller Weblogger Web Module - Trunk ............... FAILURE [0.888s] >> [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 14:17.341s >> >> It seems that there is something wrong with roller-weblogger-web and >> roller-weblogger-webapp's classpath, in their Maven dependencies, they >> can not find tools.jar, shown in attach figure. I think there may be >> something wrong with Roller's maven configuration file and we should >> fix it. But now, i do not know how to handle this situation, and >> please help. Thank you. >> >> [1] >> https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse >> >> -- >> Best Regards >> ---------------------------------------------------- >> Tiger Gui [tigergui1990@...] >> -- Best Regards ---------------------------------------------------- Tiger Gui [tigergui1990@...] |
|
|
Re: Install and build Roller trunk source code failedHi,
When i built using command line i did not get build failure. Roller builds fine with Maven2 and Maven3 both. I suggest you to try building using command line. To skip the test you need to give an argument. -Dmaven.test.skip=true So it would look like, mvn clean install -Dmaven.test.skip=true On another note please provide the full log of the error you get preferably with your OS, Java version and Maven version. Sometimes it would be easier for people to understand. Thanks On Sun, Feb 5, 2012 at 8:56 PM, Tiger Gui <tigergui1990@...> wrote: > Sorry, i am not very clear how to build it with the tests skipped, i > use Eclipse run as -> maven install to build the trunk, how to skip > the tests ? Thank you > > 2012/2/5 Greg Huber <gregh3269@...>: > > Hello, > > > > Try building it with the tests skipped. > > > > ..... > > > > [INFO] Reactor Summary: > > [INFO] > > [INFO] Roller Project - Trunk ............................ SUCCESS > [1.046s] > > [INFO] Roller Core - Trunk ............................... SUCCESS > [5.184s] > > [INFO] Roller Test Utilities - Trunk ..................... SUCCESS > [2.174s] > > [INFO] Roller Planet Business - Trunk .................... SUCCESS > [12.280s] > > [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS > [19.094s] > > [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS > [13.953s] > > [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS > [10.283s] > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] BUILD SUCCESS > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: 1:05.176s > > [INFO] Finished at: Sun Feb 05 15:06:28 GMT 2012 > > [INFO] Final Memory: 23M/191M > > [INFO] > > ------------------------------------------------------------------------ > > > > > > > > > > On 5 February 2012 13:18, Tiger Gui <tigergui1990@...> wrote: > > > >> Hi all, > >> > >> I want to install and build Roller trunk source code follow the guide > >> [1], but failed, error messages: > >> > >> [INFO] Roller Project - Trunk ............................ SUCCESS > >> [14.322s] > >> [INFO] Roller Core - Trunk ............................... SUCCESS > >> [2:37.355s] > >> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS > [2.168s] > >> [INFO] Roller Planet Business - Trunk .................... SUCCESS > >> [3:07.350s] > >> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS > >> [8:14.548s] > >> [INFO] Roller Weblogger Web Module - Trunk ............... FAILURE > [0.888s] > >> [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] BUILD FAILURE > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Total time: 14:17.341s > >> > >> It seems that there is something wrong with roller-weblogger-web and > >> roller-weblogger-webapp's classpath, in their Maven dependencies, they > >> can not find tools.jar, shown in attach figure. I think there may be > >> something wrong with Roller's maven configuration file and we should > >> fix it. But now, i do not know how to handle this situation, and > >> please help. Thank you. > >> > >> [1] > >> > https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse > >> > >> -- > >> Best Regards > >> ---------------------------------------------------- > >> Tiger Gui [tigergui1990@...] > >> > > > > -- > Best Regards > ---------------------------------------------------- > Tiger Gui [tigergui1990@...] > -- Shelan Perera Home: http://www.shelan.org Blog : http://www.shelanlk.com Twitter: shelan skype :shelan.perera gtalk :shelanrc I am the master of my fate: I am the captain of my soul. *invictus* |
|
|
Re: Install and build Roller trunk source code failedHello,
If you go to run as.. | run configurations | mavern builds locate your build launch and about half way down there are check boxes. Check skip tests. Then use this launch to start the build. Last picture on https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse . On 5 February 2012 15:26, Tiger Gui <tigergui1990@...> wrote: > Sorry, i am not very clear how to build it with the tests skipped, i > use Eclipse run as -> maven install to build the trunk, how to skip > the tests ? Thank you > > 2012/2/5 Greg Huber <gregh3269@...>: > > Hello, > > > > Try building it with the tests skipped. > > > > ..... > > > > [INFO] Reactor Summary: > > [INFO] > > [INFO] Roller Project - Trunk ............................ SUCCESS > [1.046s] > > [INFO] Roller Core - Trunk ............................... SUCCESS > [5.184s] > > [INFO] Roller Test Utilities - Trunk ..................... SUCCESS > [2.174s] > > [INFO] Roller Planet Business - Trunk .................... SUCCESS > [12.280s] > > [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS > [19.094s] > > [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS > [13.953s] > > [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS > [10.283s] > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] BUILD SUCCESS > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: 1:05.176s > > [INFO] Finished at: Sun Feb 05 15:06:28 GMT 2012 > > [INFO] Final Memory: 23M/191M > > [INFO] > > ------------------------------------------------------------------------ > > > > > > > > > > On 5 February 2012 13:18, Tiger Gui <tigergui1990@...> wrote: > > > >> Hi all, > >> > >> I want to install and build Roller trunk source code follow the guide > >> [1], but failed, error messages: > >> > >> [INFO] Roller Project - Trunk ............................ SUCCESS > >> [14.322s] > >> [INFO] Roller Core - Trunk ............................... SUCCESS > >> [2:37.355s] > >> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS > [2.168s] > >> [INFO] Roller Planet Business - Trunk .................... SUCCESS > >> [3:07.350s] > >> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS > >> [8:14.548s] > >> [INFO] Roller Weblogger Web Module - Trunk ............... FAILURE > [0.888s] > >> [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] BUILD FAILURE > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Total time: 14:17.341s > >> > >> It seems that there is something wrong with roller-weblogger-web and > >> roller-weblogger-webapp's classpath, in their Maven dependencies, they > >> can not find tools.jar, shown in attach figure. I think there may be > >> something wrong with Roller's maven configuration file and we should > >> fix it. But now, i do not know how to handle this situation, and > >> please help. Thank you. > >> > >> [1] > >> > https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse > >> > >> -- > >> Best Regards > >> ---------------------------------------------------- > >> Tiger Gui [tigergui1990@...] > >> > > > > -- > Best Regards > ---------------------------------------------------- > Tiger Gui [tigergui1990@...] > |
|
|
Re: Install and build Roller trunk source code failedCurrent Roller trunk is build fine and passing 100% of unit tests (as you
can see here https://builds.apache.org/view/M-R/view/Roller/). If you are experiencing test failures there must be some problem with your Java, Maven or Eclipse environment. - Dave On Sun, Feb 5, 2012 at 10:34 AM, Greg Huber <gregh3269@...> wrote: > Hello, > > > If you go to run as.. | run configurations | mavern builds > > locate your build launch and about half way down there are check boxes. > Check skip tests. Then use this launch to start the build. > > Last picture on > > https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse > . > > On 5 February 2012 15:26, Tiger Gui <tigergui1990@...> wrote: > > > Sorry, i am not very clear how to build it with the tests skipped, i > > use Eclipse run as -> maven install to build the trunk, how to skip > > the tests ? Thank you > > > > 2012/2/5 Greg Huber <gregh3269@...>: > > > Hello, > > > > > > Try building it with the tests skipped. > > > > > > ..... > > > > > > [INFO] Reactor Summary: > > > [INFO] > > > [INFO] Roller Project - Trunk ............................ SUCCESS > > [1.046s] > > > [INFO] Roller Core - Trunk ............................... SUCCESS > > [5.184s] > > > [INFO] Roller Test Utilities - Trunk ..................... SUCCESS > > [2.174s] > > > [INFO] Roller Planet Business - Trunk .................... SUCCESS > > [12.280s] > > > [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS > > [19.094s] > > > [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS > > [13.953s] > > > [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS > > [10.283s] > > > [INFO] > > > > ------------------------------------------------------------------------ > > > [INFO] BUILD SUCCESS > > > [INFO] > > > > ------------------------------------------------------------------------ > > > [INFO] Total time: 1:05.176s > > > [INFO] Finished at: Sun Feb 05 15:06:28 GMT 2012 > > > [INFO] Final Memory: 23M/191M > > > [INFO] > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > > On 5 February 2012 13:18, Tiger Gui <tigergui1990@...> wrote: > > > > > >> Hi all, > > >> > > >> I want to install and build Roller trunk source code follow the guide > > >> [1], but failed, error messages: > > >> > > >> [INFO] Roller Project - Trunk ............................ SUCCESS > > >> [14.322s] > > >> [INFO] Roller Core - Trunk ............................... SUCCESS > > >> [2:37.355s] > > >> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS > > [2.168s] > > >> [INFO] Roller Planet Business - Trunk .................... SUCCESS > > >> [3:07.350s] > > >> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS > > >> [8:14.548s] > > >> [INFO] Roller Weblogger Web Module - Trunk ............... FAILURE > > [0.888s] > > >> [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED > > >> [INFO] > > >> > ------------------------------------------------------------------------ > > >> [INFO] BUILD FAILURE > > >> [INFO] > > >> > ------------------------------------------------------------------------ > > >> [INFO] Total time: 14:17.341s > > >> > > >> It seems that there is something wrong with roller-weblogger-web and > > >> roller-weblogger-webapp's classpath, in their Maven dependencies, they > > >> can not find tools.jar, shown in attach figure. I think there may be > > >> something wrong with Roller's maven configuration file and we should > > >> fix it. But now, i do not know how to handle this situation, and > > >> please help. Thank you. > > >> > > >> [1] > > >> > > > https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse > > >> > > >> -- > > >> Best Regards > > >> ---------------------------------------------------- > > >> Tiger Gui [tigergui1990@...] > > >> > > > > > > > > -- > > Best Regards > > ---------------------------------------------------- > > Tiger Gui [tigergui1990@...] > > > -- Dave M. Johnson Apache Roller PMC Chair http://rollerweblogger.org/roller |
|
|
Re: Install and build Roller trunk source code failedThank you for all your replies, there may be something wrong with my
Eclipse, i will try the command line to build it 2012/2/5 Dave <snoopdave@...>: > Current Roller trunk is build fine and passing 100% of unit tests (as you > can see here https://builds.apache.org/view/M-R/view/Roller/). If you are > experiencing test failures there must be some problem with your Java, Maven > or Eclipse environment. > > - Dave > > > On Sun, Feb 5, 2012 at 10:34 AM, Greg Huber <gregh3269@...> wrote: > >> Hello, >> >> >> If you go to run as.. | run configurations | mavern builds >> >> locate your build launch and about half way down there are check boxes. >> Check skip tests. Then use this launch to start the build. >> >> Last picture on >> >> https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse >> . >> >> On 5 February 2012 15:26, Tiger Gui <tigergui1990@...> wrote: >> >> > Sorry, i am not very clear how to build it with the tests skipped, i >> > use Eclipse run as -> maven install to build the trunk, how to skip >> > the tests ? Thank you >> > >> > 2012/2/5 Greg Huber <gregh3269@...>: >> > > Hello, >> > > >> > > Try building it with the tests skipped. >> > > >> > > ..... >> > > >> > > [INFO] Reactor Summary: >> > > [INFO] >> > > [INFO] Roller Project - Trunk ............................ SUCCESS >> > [1.046s] >> > > [INFO] Roller Core - Trunk ............................... SUCCESS >> > [5.184s] >> > > [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >> > [2.174s] >> > > [INFO] Roller Planet Business - Trunk .................... SUCCESS >> > [12.280s] >> > > [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS >> > [19.094s] >> > > [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS >> > [13.953s] >> > > [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS >> > [10.283s] >> > > [INFO] >> > > >> ------------------------------------------------------------------------ >> > > [INFO] BUILD SUCCESS >> > > [INFO] >> > > >> ------------------------------------------------------------------------ >> > > [INFO] Total time: 1:05.176s >> > > [INFO] Finished at: Sun Feb 05 15:06:28 GMT 2012 >> > > [INFO] Final Memory: 23M/191M >> > > [INFO] >> > > >> ------------------------------------------------------------------------ >> > > >> > > >> > > >> > > >> > > On 5 February 2012 13:18, Tiger Gui <tigergui1990@...> wrote: >> > > >> > >> Hi all, >> > >> >> > >> I want to install and build Roller trunk source code follow the guide >> > >> [1], but failed, error messages: >> > >> >> > >> [INFO] Roller Project - Trunk ............................ SUCCESS >> > >> [14.322s] >> > >> [INFO] Roller Core - Trunk ............................... SUCCESS >> > >> [2:37.355s] >> > >> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >> > [2.168s] >> > >> [INFO] Roller Planet Business - Trunk .................... SUCCESS >> > >> [3:07.350s] >> > >> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS >> > >> [8:14.548s] >> > >> [INFO] Roller Weblogger Web Module - Trunk ............... FAILURE >> > [0.888s] >> > >> [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED >> > >> [INFO] >> > >> >> ------------------------------------------------------------------------ >> > >> [INFO] BUILD FAILURE >> > >> [INFO] >> > >> >> ------------------------------------------------------------------------ >> > >> [INFO] Total time: 14:17.341s >> > >> >> > >> It seems that there is something wrong with roller-weblogger-web and >> > >> roller-weblogger-webapp's classpath, in their Maven dependencies, they >> > >> can not find tools.jar, shown in attach figure. I think there may be >> > >> something wrong with Roller's maven configuration file and we should >> > >> fix it. But now, i do not know how to handle this situation, and >> > >> please help. Thank you. >> > >> >> > >> [1] >> > >> >> > >> https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse >> > >> >> > >> -- >> > >> Best Regards >> > >> ---------------------------------------------------- >> > >> Tiger Gui [tigergui1990@...] >> > >> >> > >> > >> > >> > -- >> > Best Regards >> > ---------------------------------------------------- >> > Tiger Gui [tigergui1990@...] >> > >> > > > > -- > Dave M. Johnson > Apache Roller PMC Chair > http://rollerweblogger.org/roller -- Best Regards ---------------------------------------------------- Tiger Gui [tigergui1990@...] |
|
|
Re: Install and build Roller trunk source code failedYou should use the normal maven options. You can define the skipTests property via the command line: maven install -DskipTests or if the tests fail to build: maven install -Dmaven.test.skip For complete background, see http://maven.apache.org/plugins/maven-surefire-plugin/examples/skipping-test.html On 2/5/2012 8:00 AM, Tiger Gui wrote: > Thank you for all your replies, there may be something wrong with my > Eclipse, i will try the command line to build it > > 2012/2/5 Dave<snoopdave@...>: >> Current Roller trunk is build fine and passing 100% of unit tests (as you >> can see here https://builds.apache.org/view/M-R/view/Roller/). If you are >> experiencing test failures there must be some problem with your Java, Maven >> or Eclipse environment. >> >> - Dave >> >> >> On Sun, Feb 5, 2012 at 10:34 AM, Greg Huber<gregh3269@...> wrote: >> >>> Hello, >>> >>> >>> If you go to run as.. | run configurations | mavern builds >>> >>> locate your build launch and about half way down there are check boxes. >>> Check skip tests. Then use this launch to start the build. >>> >>> Last picture on >>> >>> https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse >>> . >>> >>> On 5 February 2012 15:26, Tiger Gui<tigergui1990@...> wrote: >>> >>>> Sorry, i am not very clear how to build it with the tests skipped, i >>>> use Eclipse run as -> maven install to build the trunk, how to skip >>>> the tests ? Thank you >>>> >>>> 2012/2/5 Greg Huber<gregh3269@...>: >>>>> Hello, >>>>> >>>>> Try building it with the tests skipped. >>>>> >>>>> ..... >>>>> >>>>> [INFO] Reactor Summary: >>>>> [INFO] >>>>> [INFO] Roller Project - Trunk ............................ SUCCESS >>>> [1.046s] >>>>> [INFO] Roller Core - Trunk ............................... SUCCESS >>>> [5.184s] >>>>> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >>>> [2.174s] >>>>> [INFO] Roller Planet Business - Trunk .................... SUCCESS >>>> [12.280s] >>>>> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS >>>> [19.094s] >>>>> [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS >>>> [13.953s] >>>>> [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS >>>> [10.283s] >>>>> [INFO] >>>>> >>> ------------------------------------------------------------------------ >>>>> [INFO] BUILD SUCCESS >>>>> [INFO] >>>>> >>> ------------------------------------------------------------------------ >>>>> [INFO] Total time: 1:05.176s >>>>> [INFO] Finished at: Sun Feb 05 15:06:28 GMT 2012 >>>>> [INFO] Final Memory: 23M/191M >>>>> [INFO] >>>>> >>> ------------------------------------------------------------------------ >>>>> >>>>> >>>>> >>>>> On 5 February 2012 13:18, Tiger Gui<tigergui1990@...> wrote: >>>>> >>>>>> Hi all, >>>>>> >>>>>> I want to install and build Roller trunk source code follow the guide >>>>>> [1], but failed, error messages: >>>>>> >>>>>> [INFO] Roller Project - Trunk ............................ SUCCESS >>>>>> [14.322s] >>>>>> [INFO] Roller Core - Trunk ............................... SUCCESS >>>>>> [2:37.355s] >>>>>> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >>>> [2.168s] >>>>>> [INFO] Roller Planet Business - Trunk .................... SUCCESS >>>>>> [3:07.350s] >>>>>> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS >>>>>> [8:14.548s] >>>>>> [INFO] Roller Weblogger Web Module - Trunk ............... FAILURE >>>> [0.888s] >>>>>> [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED >>>>>> [INFO] >>>>>> >>> ------------------------------------------------------------------------ >>>>>> [INFO] BUILD FAILURE >>>>>> [INFO] >>>>>> >>> ------------------------------------------------------------------------ >>>>>> [INFO] Total time: 14:17.341s >>>>>> >>>>>> It seems that there is something wrong with roller-weblogger-web and >>>>>> roller-weblogger-webapp's classpath, in their Maven dependencies, they >>>>>> can not find tools.jar, shown in attach figure. I think there may be >>>>>> something wrong with Roller's maven configuration file and we should >>>>>> fix it. But now, i do not know how to handle this situation, and >>>>>> please help. Thank you. >>>>>> >>>>>> [1] >>>>>> >>> https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse >>>>>> -- >>>>>> Best Regards >>>>>> ---------------------------------------------------- >>>>>> Tiger Gui [tigergui1990@...] >>>>>> >>>> >>>> >>>> -- >>>> Best Regards >>>> ---------------------------------------------------- >>>> Tiger Gui [tigergui1990@...] >>>> >> >> >> -- >> Dave M. Johnson >> Apache Roller PMC Chair >> http://rollerweblogger.org/roller > > |
|
|
Re: Install and build Roller trunk source code failedHi Dave,
When i use "mvn -e install" to build Roller trunk, there are indeed unit test failures, logs below: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Roller Project - Trunk ............................ SUCCESS [0.305s] [INFO] Roller Core - Trunk ............................... SUCCESS [1:29.706s] [INFO] Roller Test Utilities - Trunk ..................... SUCCESS [2:14.508s] [INFO] Roller Planet Business - Trunk .................... FAILURE [9:23.334s] [INFO] Roller Weblogger Business Module - Trunk .......... SKIPPED [INFO] Roller Weblogger Web Module - Trunk ............... SKIPPED [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13:08.072s [INFO] Finished at: Tue Feb 07 10:44:59 CST 2012 [INFO] Final Memory: 12M/29M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2. 4.3:test (default-test) on project roller-planet-business: There are test failur es. [ERROR] [ERROR] Please refer to E:\gsoc2012\roller\planet-business\target\surefire-repor ts for the individual test results. [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o rg.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on proje ct roller-planet-business: There are test failures. Please refer to E:\gsoc2012\roller\planet-business\target\surefire-reports for t he individual test results. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje ct(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje ct(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu ild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl eStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun cher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav a:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La uncher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 352) Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures . Please refer to E:\gsoc2012\roller\planet-business\target\surefire-reports for t he individual test results. at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugi n.java:575) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default BuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:209) ... 19 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc eption [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :roller-planet-business Then, i tried "mvn -e clean install -Dmaven.test.skip=true" to skip unit tests, everything works well, and build successful. [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Roller Project - Trunk ............................ SUCCESS [13.669s] [INFO] Roller Core - Trunk ............................... SUCCESS [1.249s] [INFO] Roller Test Utilities - Trunk ..................... SUCCESS [0.718s] [INFO] Roller Planet Business - Trunk .................... SUCCESS [3.443s] [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS [6:58.762s] [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS [14:44.489s] [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS [4:30.487s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 26:33.030s [INFO] Finished at: Tue Feb 07 11:21:12 CST 2012 [INFO] Final Memory: 14M/38M [INFO] ------------------------------------------------------------------------ So, there may be something wrong with Roller's test cases. 2012/2/5 Dave <snoopdave@...>: > Current Roller trunk is build fine and passing 100% of unit tests (as you > can see here https://builds.apache.org/view/M-R/view/Roller/). If you are > experiencing test failures there must be some problem with your Java, Maven > or Eclipse environment. > > - Dave > > > On Sun, Feb 5, 2012 at 10:34 AM, Greg Huber <gregh3269@...> wrote: > >> Hello, >> >> >> If you go to run as.. | run configurations | mavern builds >> >> locate your build launch and about half way down there are check boxes. >> Check skip tests. Then use this launch to start the build. >> >> Last picture on >> >> https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse >> . >> >> On 5 February 2012 15:26, Tiger Gui <tigergui1990@...> wrote: >> >> > Sorry, i am not very clear how to build it with the tests skipped, i >> > use Eclipse run as -> maven install to build the trunk, how to skip >> > the tests ? Thank you >> > >> > 2012/2/5 Greg Huber <gregh3269@...>: >> > > Hello, >> > > >> > > Try building it with the tests skipped. >> > > >> > > ..... >> > > >> > > [INFO] Reactor Summary: >> > > [INFO] >> > > [INFO] Roller Project - Trunk ............................ SUCCESS >> > [1.046s] >> > > [INFO] Roller Core - Trunk ............................... SUCCESS >> > [5.184s] >> > > [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >> > [2.174s] >> > > [INFO] Roller Planet Business - Trunk .................... SUCCESS >> > [12.280s] >> > > [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS >> > [19.094s] >> > > [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS >> > [13.953s] >> > > [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS >> > [10.283s] >> > > [INFO] >> > > >> ------------------------------------------------------------------------ >> > > [INFO] BUILD SUCCESS >> > > [INFO] >> > > >> ------------------------------------------------------------------------ >> > > [INFO] Total time: 1:05.176s >> > > [INFO] Finished at: Sun Feb 05 15:06:28 GMT 2012 >> > > [INFO] Final Memory: 23M/191M >> > > [INFO] >> > > >> ------------------------------------------------------------------------ >> > > >> > > >> > > >> > > >> > > On 5 February 2012 13:18, Tiger Gui <tigergui1990@...> wrote: >> > > >> > >> Hi all, >> > >> >> > >> I want to install and build Roller trunk source code follow the guide >> > >> [1], but failed, error messages: >> > >> >> > >> [INFO] Roller Project - Trunk ............................ SUCCESS >> > >> [14.322s] >> > >> [INFO] Roller Core - Trunk ............................... SUCCESS >> > >> [2:37.355s] >> > >> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >> > [2.168s] >> > >> [INFO] Roller Planet Business - Trunk .................... SUCCESS >> > >> [3:07.350s] >> > >> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS >> > >> [8:14.548s] >> > >> [INFO] Roller Weblogger Web Module - Trunk ............... FAILURE >> > [0.888s] >> > >> [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED >> > >> [INFO] >> > >> >> ------------------------------------------------------------------------ >> > >> [INFO] BUILD FAILURE >> > >> [INFO] >> > >> >> ------------------------------------------------------------------------ >> > >> [INFO] Total time: 14:17.341s >> > >> >> > >> It seems that there is something wrong with roller-weblogger-web and >> > >> roller-weblogger-webapp's classpath, in their Maven dependencies, they >> > >> can not find tools.jar, shown in attach figure. I think there may be >> > >> something wrong with Roller's maven configuration file and we should >> > >> fix it. But now, i do not know how to handle this situation, and >> > >> please help. Thank you. >> > >> >> > >> [1] >> > >> >> > >> https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse >> > >> >> > >> -- >> > >> Best Regards >> > >> ---------------------------------------------------- >> > >> Tiger Gui [tigergui1990@...] >> > >> >> > >> > >> > >> > -- >> > Best Regards >> > ---------------------------------------------------- >> > Tiger Gui [tigergui1990@...] >> > >> > > > > -- > Dave M. Johnson > Apache Roller PMC Chair > http://rollerweblogger.org/roller -- Best Regards ---------------------------------------------------- Tiger Gui [tigergui1990@...] |
|
|
Re: Install and build Roller trunk source code failedHi,
Could you please send the complete log. To get a better idea we need the log before what you have attached here. Thanks On Tue, Feb 7, 2012 at 9:32 AM, Tiger Gui <tigergui1990@...> wrote: > Hi Dave, > > When i use "mvn -e install" to build Roller trunk, there are indeed > unit test failures, logs below: > > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Roller Project - Trunk ............................ SUCCESS [0.305s] > [INFO] Roller Core - Trunk ............................... SUCCESS > [1:29.706s] > [INFO] Roller Test Utilities - Trunk ..................... SUCCESS > [2:14.508s] > [INFO] Roller Planet Business - Trunk .................... FAILURE > [9:23.334s] > [INFO] Roller Weblogger Business Module - Trunk .......... SKIPPED > [INFO] Roller Weblogger Web Module - Trunk ............... SKIPPED > [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 13:08.072s > [INFO] Finished at: Tue Feb 07 10:44:59 CST 2012 > [INFO] Final Memory: 12M/29M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2. > 4.3:test (default-test) on project roller-planet-business: There are test > failur > es. > [ERROR] > [ERROR] Please refer to > E:\gsoc2012\roller\planet-business\target\surefire-repor > ts for the individual test results. > [ERROR] -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal o > rg.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on > proje > ct roller-planet-business: There are test failures. > > Please refer to E:\gsoc2012\roller\planet-business\target\surefire-reports > for t > he individual test results. > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor > .java:213) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor > .java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor > .java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje > ct(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje > ct(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu > ild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl > eStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun > cher.java:290) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav > a:230) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La > uncher.java:409) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: > 352) > Caused by: org.apache.maven.plugin.MojoFailureException: There are test > failures > . > > Please refer to E:\gsoc2012\roller\planet-business\target\surefire-reports > for t > he individual test results. > at > org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugi > n.java:575) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default > BuildPluginManager.java:101) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor > .java:209) > ... 19 more > [ERROR] > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please rea > d the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc > eption > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the > command > > [ERROR] mvn <goals> -rf :roller-planet-business > > > Then, i tried "mvn -e clean install -Dmaven.test.skip=true" to skip > unit tests, everything works well, and build successful. > > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Roller Project - Trunk ............................ SUCCESS > [13.669s] > [INFO] Roller Core - Trunk ............................... SUCCESS [1.249s] > [INFO] Roller Test Utilities - Trunk ..................... SUCCESS [0.718s] > [INFO] Roller Planet Business - Trunk .................... SUCCESS [3.443s] > [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS > [6:58.762s] > [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS > [14:44.489s] > [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS > [4:30.487s] > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 26:33.030s > [INFO] Finished at: Tue Feb 07 11:21:12 CST 2012 > [INFO] Final Memory: 14M/38M > [INFO] > ------------------------------------------------------------------------ > > So, there may be something wrong with Roller's test cases. > > 2012/2/5 Dave <snoopdave@...>: > > Current Roller trunk is build fine and passing 100% of unit tests (as you > > can see here https://builds.apache.org/view/M-R/view/Roller/). If you > are > > experiencing test failures there must be some problem with your Java, > Maven > > or Eclipse environment. > > > > - Dave > > > > > > On Sun, Feb 5, 2012 at 10:34 AM, Greg Huber <gregh3269@...> wrote: > > > >> Hello, > >> > >> > >> If you go to run as.. | run configurations | mavern builds > >> > >> locate your build launch and about half way down there are check boxes. > >> Check skip tests. Then use this launch to start the build. > >> > >> Last picture on > >> > >> > https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse > >> . > >> > >> On 5 February 2012 15:26, Tiger Gui <tigergui1990@...> wrote: > >> > >> > Sorry, i am not very clear how to build it with the tests skipped, i > >> > use Eclipse run as -> maven install to build the trunk, how to skip > >> > the tests ? Thank you > >> > > >> > 2012/2/5 Greg Huber <gregh3269@...>: > >> > > Hello, > >> > > > >> > > Try building it with the tests skipped. > >> > > > >> > > ..... > >> > > > >> > > [INFO] Reactor Summary: > >> > > [INFO] > >> > > [INFO] Roller Project - Trunk ............................ SUCCESS > >> > [1.046s] > >> > > [INFO] Roller Core - Trunk ............................... SUCCESS > >> > [5.184s] > >> > > [INFO] Roller Test Utilities - Trunk ..................... SUCCESS > >> > [2.174s] > >> > > [INFO] Roller Planet Business - Trunk .................... SUCCESS > >> > [12.280s] > >> > > [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS > >> > [19.094s] > >> > > [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS > >> > [13.953s] > >> > > [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS > >> > [10.283s] > >> > > [INFO] > >> > > > >> ------------------------------------------------------------------------ > >> > > [INFO] BUILD SUCCESS > >> > > [INFO] > >> > > > >> ------------------------------------------------------------------------ > >> > > [INFO] Total time: 1:05.176s > >> > > [INFO] Finished at: Sun Feb 05 15:06:28 GMT 2012 > >> > > [INFO] Final Memory: 23M/191M > >> > > [INFO] > >> > > > >> ------------------------------------------------------------------------ > >> > > > >> > > > >> > > > >> > > > >> > > On 5 February 2012 13:18, Tiger Gui <tigergui1990@...> wrote: > >> > > > >> > >> Hi all, > >> > >> > >> > >> I want to install and build Roller trunk source code follow the > guide > >> > >> [1], but failed, error messages: > >> > >> > >> > >> [INFO] Roller Project - Trunk ............................ SUCCESS > >> > >> [14.322s] > >> > >> [INFO] Roller Core - Trunk ............................... SUCCESS > >> > >> [2:37.355s] > >> > >> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS > >> > [2.168s] > >> > >> [INFO] Roller Planet Business - Trunk .................... SUCCESS > >> > >> [3:07.350s] > >> > >> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS > >> > >> [8:14.548s] > >> > >> [INFO] Roller Weblogger Web Module - Trunk ............... FAILURE > >> > [0.888s] > >> > >> [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED > >> > >> [INFO] > >> > >> > >> ------------------------------------------------------------------------ > >> > >> [INFO] BUILD FAILURE > >> > >> [INFO] > >> > >> > >> ------------------------------------------------------------------------ > >> > >> [INFO] Total time: 14:17.341s > >> > >> > >> > >> It seems that there is something wrong with roller-weblogger-web > and > >> > >> roller-weblogger-webapp's classpath, in their Maven dependencies, > they > >> > >> can not find tools.jar, shown in attach figure. I think there may > be > >> > >> something wrong with Roller's maven configuration file and we > should > >> > >> fix it. But now, i do not know how to handle this situation, and > >> > >> please help. Thank you. > >> > >> > >> > >> [1] > >> > >> > >> > > >> > https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse > >> > >> > >> > >> -- > >> > >> Best Regards > >> > >> ---------------------------------------------------- > >> > >> Tiger Gui [tigergui1990@...] > >> > >> > >> > > >> > > >> > > >> > -- > >> > Best Regards > >> > ---------------------------------------------------- > >> > Tiger Gui [tigergui1990@...] > >> > > >> > > > > > > > > -- > > Dave M. Johnson > > Apache Roller PMC Chair > > http://rollerweblogger.org/roller > > > > -- > Best Regards > ---------------------------------------------------- > Tiger Gui [tigergui1990@...] > -- Shelan Perera Home: http://www.shelan.org Blog : http://www.shelanlk.com Twitter: shelan skype :shelan.perera gtalk :shelanrc I am the master of my fate: I am the captain of my soul. *invictus* |
|
|
Re: Install and build Roller trunk source code failedHi,
I just built the trunk and it builds fine. Even the Continuous build has not raised any errors. Thanks. On Tue, Feb 7, 2012 at 9:51 AM, shelan Perera <shelanrc@...> wrote: > Hi, > > Could you please send the complete log. To get a better idea we need the > log before what you have attached here. > > Thanks > > > On Tue, Feb 7, 2012 at 9:32 AM, Tiger Gui <tigergui1990@...> wrote: > >> Hi Dave, >> >> When i use "mvn -e install" to build Roller trunk, there are indeed >> unit test failures, logs below: >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] Roller Project - Trunk ............................ SUCCESS >> [0.305s] >> [INFO] Roller Core - Trunk ............................... SUCCESS >> [1:29.706s] >> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >> [2:14.508s] >> [INFO] Roller Planet Business - Trunk .................... FAILURE >> [9:23.334s] >> [INFO] Roller Weblogger Business Module - Trunk .......... SKIPPED >> [INFO] Roller Weblogger Web Module - Trunk ............... SKIPPED >> [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 13:08.072s >> [INFO] Finished at: Tue Feb 07 10:44:59 CST 2012 >> [INFO] Final Memory: 12M/29M >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-surefire-plugin:2. >> 4.3:test (default-test) on project roller-planet-business: There are test >> failur >> es. >> [ERROR] >> [ERROR] Please refer to >> E:\gsoc2012\roller\planet-business\target\surefire-repor >> ts for the individual test results. >> [ERROR] -> [Help 1] >> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute >> goal o >> rg.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) >> on proje >> ct roller-planet-business: There are test failures. >> >> Please refer to >> E:\gsoc2012\roller\planet-business\target\surefire-reports for t >> he individual test results. >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor >> .java:213) >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor >> .java:153) >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor >> .java:145) >> at >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje >> ct(LifecycleModuleBuilder.java:84) >> at >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje >> ct(LifecycleModuleBuilder.java:59) >> at >> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu >> ild(LifecycleStarter.java:183) >> at >> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl >> eStarter.java:161) >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) >> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) >> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. >> java:57) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >> sorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:601) >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun >> cher.java:290) >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav >> a:230) >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La >> uncher.java:409) >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: >> 352) >> Caused by: org.apache.maven.plugin.MojoFailureException: There are test >> failures >> . >> >> Please refer to >> E:\gsoc2012\roller\planet-business\target\surefire-reports for t >> he individual test results. >> at >> org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugi >> n.java:575) >> at >> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default >> BuildPluginManager.java:101) >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor >> .java:209) >> ... 19 more >> [ERROR] >> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> [ERROR] >> [ERROR] For more information about the errors and possible solutions, >> please rea >> d the following articles: >> [ERROR] [Help 1] >> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc >> eption >> [ERROR] >> [ERROR] After correcting the problems, you can resume the build with the >> command >> >> [ERROR] mvn <goals> -rf :roller-planet-business >> >> >> Then, i tried "mvn -e clean install -Dmaven.test.skip=true" to skip >> unit tests, everything works well, and build successful. >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] Roller Project - Trunk ............................ SUCCESS >> [13.669s] >> [INFO] Roller Core - Trunk ............................... SUCCESS >> [1.249s] >> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >> [0.718s] >> [INFO] Roller Planet Business - Trunk .................... SUCCESS >> [3.443s] >> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS >> [6:58.762s] >> [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS >> [14:44.489s] >> [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS >> [4:30.487s] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD SUCCESS >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 26:33.030s >> [INFO] Finished at: Tue Feb 07 11:21:12 CST 2012 >> [INFO] Final Memory: 14M/38M >> [INFO] >> ------------------------------------------------------------------------ >> >> So, there may be something wrong with Roller's test cases. >> >> 2012/2/5 Dave <snoopdave@...>: >> > Current Roller trunk is build fine and passing 100% of unit tests (as >> you >> > can see here https://builds.apache.org/view/M-R/view/Roller/). If you >> are >> > experiencing test failures there must be some problem with your Java, >> Maven >> > or Eclipse environment. >> > >> > - Dave >> > >> > >> > On Sun, Feb 5, 2012 at 10:34 AM, Greg Huber <gregh3269@...> >> wrote: >> > >> >> Hello, >> >> >> >> >> >> If you go to run as.. | run configurations | mavern builds >> >> >> >> locate your build launch and about half way down there are check boxes. >> >> Check skip tests. Then use this launch to start the build. >> >> >> >> Last picture on >> >> >> >> >> https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse >> >> . >> >> >> >> On 5 February 2012 15:26, Tiger Gui <tigergui1990@...> wrote: >> >> >> >> > Sorry, i am not very clear how to build it with the tests skipped, i >> >> > use Eclipse run as -> maven install to build the trunk, how to skip >> >> > the tests ? Thank you >> >> > >> >> > 2012/2/5 Greg Huber <gregh3269@...>: >> >> > > Hello, >> >> > > >> >> > > Try building it with the tests skipped. >> >> > > >> >> > > ..... >> >> > > >> >> > > [INFO] Reactor Summary: >> >> > > [INFO] >> >> > > [INFO] Roller Project - Trunk ............................ SUCCESS >> >> > [1.046s] >> >> > > [INFO] Roller Core - Trunk ............................... SUCCESS >> >> > [5.184s] >> >> > > [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >> >> > [2.174s] >> >> > > [INFO] Roller Planet Business - Trunk .................... SUCCESS >> >> > [12.280s] >> >> > > [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS >> >> > [19.094s] >> >> > > [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS >> >> > [13.953s] >> >> > > [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS >> >> > [10.283s] >> >> > > [INFO] >> >> > > >> >> >> ------------------------------------------------------------------------ >> >> > > [INFO] BUILD SUCCESS >> >> > > [INFO] >> >> > > >> >> >> ------------------------------------------------------------------------ >> >> > > [INFO] Total time: 1:05.176s >> >> > > [INFO] Finished at: Sun Feb 05 15:06:28 GMT 2012 >> >> > > [INFO] Final Memory: 23M/191M >> >> > > [INFO] >> >> > > >> >> >> ------------------------------------------------------------------------ >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > On 5 February 2012 13:18, Tiger Gui <tigergui1990@...> >> wrote: >> >> > > >> >> > >> Hi all, >> >> > >> >> >> > >> I want to install and build Roller trunk source code follow the >> guide >> >> > >> [1], but failed, error messages: >> >> > >> >> >> > >> [INFO] Roller Project - Trunk ............................ SUCCESS >> >> > >> [14.322s] >> >> > >> [INFO] Roller Core - Trunk ............................... SUCCESS >> >> > >> [2:37.355s] >> >> > >> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >> >> > [2.168s] >> >> > >> [INFO] Roller Planet Business - Trunk .................... SUCCESS >> >> > >> [3:07.350s] >> >> > >> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS >> >> > >> [8:14.548s] >> >> > >> [INFO] Roller Weblogger Web Module - Trunk ............... FAILURE >> >> > [0.888s] >> >> > >> [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED >> >> > >> [INFO] >> >> > >> >> >> >> ------------------------------------------------------------------------ >> >> > >> [INFO] BUILD FAILURE >> >> > >> [INFO] >> >> > >> >> >> >> ------------------------------------------------------------------------ >> >> > >> [INFO] Total time: 14:17.341s >> >> > >> >> >> > >> It seems that there is something wrong with roller-weblogger-web >> and >> >> > >> roller-weblogger-webapp's classpath, in their Maven dependencies, >> they >> >> > >> can not find tools.jar, shown in attach figure. I think there may >> be >> >> > >> something wrong with Roller's maven configuration file and we >> should >> >> > >> fix it. But now, i do not know how to handle this situation, and >> >> > >> please help. Thank you. >> >> > >> >> >> > >> [1] >> >> > >> >> >> > >> >> >> https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse >> >> > >> >> >> > >> -- >> >> > >> Best Regards >> >> > >> ---------------------------------------------------- >> >> > >> Tiger Gui [tigergui1990@...] >> >> > >> >> >> > >> >> > >> >> > >> >> > -- >> >> > Best Regards >> >> > ---------------------------------------------------- >> >> > Tiger Gui [tigergui1990@...] >> >> > >> >> >> > >> > >> > >> > -- >> > Dave M. Johnson >> > Apache Roller PMC Chair >> > http://rollerweblogger.org/roller >> >> >> >> -- >> Best Regards >> ---------------------------------------------------- >> Tiger Gui [tigergui1990@...] >> > > > > -- > Shelan Perera > > Home: http://www.shelan.org > Blog : http://www.shelanlk.com > Twitter: shelan > skype :shelan.perera > gtalk :shelanrc > > I am the master of my fate: > I am the captain of my soul. > *invictus* > > > > > > > > -- Shelan Perera Home: http://www.shelan.org Blog : http://www.shelanlk.com Twitter: shelan skype :shelan.perera gtalk :shelanrc I am the master of my fate: I am the captain of my soul. *invictus* |
|
|
Re: Install and build Roller trunk source code failedMay be my environment problems ? I will check it. Anyway, i can
install and build it successful use command "mvn -e clean install -Dmaven.test.skip=true" 2012/2/7 shelan Perera <shelanrc@...>: > Hi, > > I just built the trunk and it builds fine. Even the Continuous build has > not raised any errors. > > Thanks. > > On Tue, Feb 7, 2012 at 9:51 AM, shelan Perera <shelanrc@...> wrote: > >> Hi, >> >> Could you please send the complete log. To get a better idea we need the >> log before what you have attached here. >> >> Thanks >> >> >> On Tue, Feb 7, 2012 at 9:32 AM, Tiger Gui <tigergui1990@...> wrote: >> >>> Hi Dave, >>> >>> When i use "mvn -e install" to build Roller trunk, there are indeed >>> unit test failures, logs below: >>> >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Reactor Summary: >>> [INFO] >>> [INFO] Roller Project - Trunk ............................ SUCCESS >>> [0.305s] >>> [INFO] Roller Core - Trunk ............................... SUCCESS >>> [1:29.706s] >>> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >>> [2:14.508s] >>> [INFO] Roller Planet Business - Trunk .................... FAILURE >>> [9:23.334s] >>> [INFO] Roller Weblogger Business Module - Trunk .......... SKIPPED >>> [INFO] Roller Weblogger Web Module - Trunk ............... SKIPPED >>> [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] BUILD FAILURE >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 13:08.072s >>> [INFO] Finished at: Tue Feb 07 10:44:59 CST 2012 >>> [INFO] Final Memory: 12M/29M >>> [INFO] >>> ------------------------------------------------------------------------ >>> [ERROR] Failed to execute goal >>> org.apache.maven.plugins:maven-surefire-plugin:2. >>> 4.3:test (default-test) on project roller-planet-business: There are test >>> failur >>> es. >>> [ERROR] >>> [ERROR] Please refer to >>> E:\gsoc2012\roller\planet-business\target\surefire-repor >>> ts for the individual test results. >>> [ERROR] -> [Help 1] >>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute >>> goal o >>> rg.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) >>> on proje >>> ct roller-planet-business: There are test failures. >>> >>> Please refer to >>> E:\gsoc2012\roller\planet-business\target\surefire-reports for t >>> he individual test results. >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor >>> .java:213) >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor >>> .java:153) >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor >>> .java:145) >>> at >>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje >>> ct(LifecycleModuleBuilder.java:84) >>> at >>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje >>> ct(LifecycleModuleBuilder.java:59) >>> at >>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu >>> ild(LifecycleStarter.java:183) >>> at >>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl >>> eStarter.java:161) >>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) >>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) >>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) >>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) >>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. >>> java:57) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >>> sorImpl.java:43) >>> at java.lang.reflect.Method.invoke(Method.java:601) >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun >>> cher.java:290) >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav >>> a:230) >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La >>> uncher.java:409) >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: >>> 352) >>> Caused by: org.apache.maven.plugin.MojoFailureException: There are test >>> failures >>> . >>> >>> Please refer to >>> E:\gsoc2012\roller\planet-business\target\surefire-reports for t >>> he individual test results. >>> at >>> org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugi >>> n.java:575) >>> at >>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default >>> BuildPluginManager.java:101) >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor >>> .java:209) >>> ... 19 more >>> [ERROR] >>> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >>> [ERROR] >>> [ERROR] For more information about the errors and possible solutions, >>> please rea >>> d the following articles: >>> [ERROR] [Help 1] >>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc >>> eption >>> [ERROR] >>> [ERROR] After correcting the problems, you can resume the build with the >>> command >>> >>> [ERROR] mvn <goals> -rf :roller-planet-business >>> >>> >>> Then, i tried "mvn -e clean install -Dmaven.test.skip=true" to skip >>> unit tests, everything works well, and build successful. >>> >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Reactor Summary: >>> [INFO] >>> [INFO] Roller Project - Trunk ............................ SUCCESS >>> [13.669s] >>> [INFO] Roller Core - Trunk ............................... SUCCESS >>> [1.249s] >>> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >>> [0.718s] >>> [INFO] Roller Planet Business - Trunk .................... SUCCESS >>> [3.443s] >>> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS >>> [6:58.762s] >>> [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS >>> [14:44.489s] >>> [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS >>> [4:30.487s] >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] BUILD SUCCESS >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 26:33.030s >>> [INFO] Finished at: Tue Feb 07 11:21:12 CST 2012 >>> [INFO] Final Memory: 14M/38M >>> [INFO] >>> ------------------------------------------------------------------------ >>> >>> So, there may be something wrong with Roller's test cases. >>> >>> 2012/2/5 Dave <snoopdave@...>: >>> > Current Roller trunk is build fine and passing 100% of unit tests (as >>> you >>> > can see here https://builds.apache.org/view/M-R/view/Roller/). If you >>> are >>> > experiencing test failures there must be some problem with your Java, >>> Maven >>> > or Eclipse environment. >>> > >>> > - Dave >>> > >>> > >>> > On Sun, Feb 5, 2012 at 10:34 AM, Greg Huber <gregh3269@...> >>> wrote: >>> > >>> >> Hello, >>> >> >>> >> >>> >> If you go to run as.. | run configurations | mavern builds >>> >> >>> >> locate your build launch and about half way down there are check boxes. >>> >> Check skip tests. Then use this launch to start the build. >>> >> >>> >> Last picture on >>> >> >>> >> >>> https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse >>> >> . >>> >> >>> >> On 5 February 2012 15:26, Tiger Gui <tigergui1990@...> wrote: >>> >> >>> >> > Sorry, i am not very clear how to build it with the tests skipped, i >>> >> > use Eclipse run as -> maven install to build the trunk, how to skip >>> >> > the tests ? Thank you >>> >> > >>> >> > 2012/2/5 Greg Huber <gregh3269@...>: >>> >> > > Hello, >>> >> > > >>> >> > > Try building it with the tests skipped. >>> >> > > >>> >> > > ..... >>> >> > > >>> >> > > [INFO] Reactor Summary: >>> >> > > [INFO] >>> >> > > [INFO] Roller Project - Trunk ............................ SUCCESS >>> >> > [1.046s] >>> >> > > [INFO] Roller Core - Trunk ............................... SUCCESS >>> >> > [5.184s] >>> >> > > [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >>> >> > [2.174s] >>> >> > > [INFO] Roller Planet Business - Trunk .................... SUCCESS >>> >> > [12.280s] >>> >> > > [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS >>> >> > [19.094s] >>> >> > > [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS >>> >> > [13.953s] >>> >> > > [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS >>> >> > [10.283s] >>> >> > > [INFO] >>> >> > > >>> >> >>> ------------------------------------------------------------------------ >>> >> > > [INFO] BUILD SUCCESS >>> >> > > [INFO] >>> >> > > >>> >> >>> ------------------------------------------------------------------------ >>> >> > > [INFO] Total time: 1:05.176s >>> >> > > [INFO] Finished at: Sun Feb 05 15:06:28 GMT 2012 >>> >> > > [INFO] Final Memory: 23M/191M >>> >> > > [INFO] >>> >> > > >>> >> >>> ------------------------------------------------------------------------ >>> >> > > >>> >> > > >>> >> > > >>> >> > > >>> >> > > On 5 February 2012 13:18, Tiger Gui <tigergui1990@...> >>> wrote: >>> >> > > >>> >> > >> Hi all, >>> >> > >> >>> >> > >> I want to install and build Roller trunk source code follow the >>> guide >>> >> > >> [1], but failed, error messages: >>> >> > >> >>> >> > >> [INFO] Roller Project - Trunk ............................ SUCCESS >>> >> > >> [14.322s] >>> >> > >> [INFO] Roller Core - Trunk ............................... SUCCESS >>> >> > >> [2:37.355s] >>> >> > >> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS >>> >> > [2.168s] >>> >> > >> [INFO] Roller Planet Business - Trunk .................... SUCCESS >>> >> > >> [3:07.350s] >>> >> > >> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS >>> >> > >> [8:14.548s] >>> >> > >> [INFO] Roller Weblogger Web Module - Trunk ............... FAILURE >>> >> > [0.888s] >>> >> > >> [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED >>> >> > >> [INFO] >>> >> > >> >>> >> >>> ------------------------------------------------------------------------ >>> >> > >> [INFO] BUILD FAILURE >>> >> > >> [INFO] >>> >> > >> >>> >> >>> ------------------------------------------------------------------------ >>> >> > >> [INFO] Total time: 14:17.341s >>> >> > >> >>> >> > >> It seems that there is something wrong with roller-weblogger-web >>> and >>> >> > >> roller-weblogger-webapp's classpath, in their Maven dependencies, >>> they >>> >> > >> can not find tools.jar, shown in attach figure. I think there may >>> be >>> >> > >> something wrong with Roller's maven configuration file and we >>> should >>> >> > >> fix it. But now, i do not know how to handle this situation, and >>> >> > >> please help. Thank you. >>> >> > >> >>> >> > >> [1] >>> >> > >> >>> >> > >>> >> >>> https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse >>> >> > >> >>> >> > >> -- >>> >> > >> Best Regards >>> >> > >> ---------------------------------------------------- >>> >> > >> Tiger Gui [tigergui1990@...] >>> >> > >> >>> >> > >>> >> > >>> >> > >>> >> > -- >>> >> > Best Regards >>> >> > ---------------------------------------------------- >>> >> > Tiger Gui [tigergui1990@...] >>> >> > >>> >> >>> > >>> > >>> > >>> > -- >>> > Dave M. Johnson >>> > Apache Roller PMC Chair >>> > http://rollerweblogger.org/roller >>> >>> >>> >>> -- >>> Best Regards >>> ---------------------------------------------------- >>> Tiger Gui [tigergui1990@...] >>> >> >> >> >> -- >> Shelan Perera >> >> Home: http://www.shelan.org >> Blog : http://www.shelanlk.com >> Twitter: shelan >> skype :shelan.perera >> gtalk :shelanrc >> >> I am the master of my fate: >> I am the captain of my soul. >> *invictus* >> >> >> >> >> >> >> >> > > > -- > Shelan Perera > > Home: http://www.shelan.org > Blog : http://www.shelanlk.com > Twitter: shelan > skype :shelan.perera > gtalk :shelanrc > > I am the master of my fate: > I am the captain of my soul. > *invictus* -- Best Regards ---------------------------------------------------- Tiger Gui [tigergui1990@...] |
|
|
Re: Install and build Roller trunk source code failedShelan,
I unchecked the skip test and it does compile OK for me now. Initially it would not compile so I am not sure why it does now. I think it was something to do with the surefire plug-in. [INFO] Roller Project - Trunk ............................ SUCCESS [1.327s] [INFO] Roller Core - Trunk ............................... SUCCESS [7.958s] [INFO] Roller Test Utilities - Trunk ..................... SUCCESS [2.271s] [INFO] Roller Planet Business - Trunk .................... SUCCESS [35.028s] [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS [1:47.547s] [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS [46.758s] [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS [22.709s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3:44.366s [INFO] Finished at: Tue Feb 07 20:54:32 GMT 2012 [INFO] Final Memory: 44M/278M [INFO] ------------------------------------------------------------------------ but at 3minutes 44 seconds against 51 seconds with tests skipped, I guess it saves a whole lot of time not to run the test dev cycle. Cheers Greg. On 7 February 2012 09:57, Tiger Gui <tigergui1990@...> wrote: > May be my environment problems ? I will check it. Anyway, i can > install and build it successful use command "mvn -e clean install > -Dmaven.test.skip=true" > > 2012/2/7 shelan Perera <shelanrc@...>: > > Hi, > > > > I just built the trunk and it builds fine. Even the Continuous build has > > not raised any errors. > > > > Thanks. > > > > On Tue, Feb 7, 2012 at 9:51 AM, shelan Perera <shelanrc@...> > wrote: > > > >> Hi, > >> > >> Could you please send the complete log. To get a better idea we need the > >> log before what you have attached here. > >> > >> Thanks > >> > >> > >> On Tue, Feb 7, 2012 at 9:32 AM, Tiger Gui <tigergui1990@...> > wrote: > >> > >>> Hi Dave, > >>> > >>> When i use "mvn -e install" to build Roller trunk, there are indeed > >>> unit test failures, logs below: > >>> > >>> [INFO] > >>> > ------------------------------------------------------------------------ > >>> [INFO] Reactor Summary: > >>> [INFO] > >>> [INFO] Roller Project - Trunk ............................ SUCCESS > >>> [0.305s] > >>> [INFO] Roller Core - Trunk ............................... SUCCESS > >>> [1:29.706s] > >>> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS > >>> [2:14.508s] > >>> [INFO] Roller Planet Business - Trunk .................... FAILURE > >>> [9:23.334s] > >>> [INFO] Roller Weblogger Business Module - Trunk .......... SKIPPED > >>> [INFO] Roller Weblogger Web Module - Trunk ............... SKIPPED > >>> [INFO] Roller Weblogger Web Application - Trunk .......... SKIPPED > >>> [INFO] > >>> > ------------------------------------------------------------------------ > >>> [INFO] BUILD FAILURE > >>> [INFO] > >>> > ------------------------------------------------------------------------ > >>> [INFO] Total time: 13:08.072s > >>> [INFO] Finished at: Tue Feb 07 10:44:59 CST 2012 > >>> [INFO] Final Memory: 12M/29M > >>> [INFO] > >>> > ------------------------------------------------------------------------ > >>> [ERROR] Failed to execute goal > >>> org.apache.maven.plugins:maven-surefire-plugin:2. > >>> 4.3:test (default-test) on project roller-planet-business: There are > test > >>> failur > >>> es. > >>> [ERROR] > >>> [ERROR] Please refer to > >>> E:\gsoc2012\roller\planet-business\target\surefire-repor > >>> ts for the individual test results. > >>> [ERROR] -> [Help 1] > >>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to > execute > >>> goal o > >>> rg.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) > >>> on proje > >>> ct roller-planet-business: There are test failures. > >>> > >>> Please refer to > >>> E:\gsoc2012\roller\planet-business\target\surefire-reports for t > >>> he individual test results. > >>> at > >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor > >>> .java:213) > >>> at > >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor > >>> .java:153) > >>> at > >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor > >>> .java:145) > >>> at > >>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje > >>> ct(LifecycleModuleBuilder.java:84) > >>> at > >>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje > >>> ct(LifecycleModuleBuilder.java:59) > >>> at > >>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu > >>> ild(LifecycleStarter.java:183) > >>> at > >>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl > >>> eStarter.java:161) > >>> at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) > >>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > >>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > >>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > >>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >>> at > >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > >>> java:57) > >>> at > >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > >>> sorImpl.java:43) > >>> at java.lang.reflect.Method.invoke(Method.java:601) > >>> at > >>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun > >>> cher.java:290) > >>> at > >>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav > >>> a:230) > >>> at > >>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La > >>> uncher.java:409) > >>> at > >>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: > >>> 352) > >>> Caused by: org.apache.maven.plugin.MojoFailureException: There are test > >>> failures > >>> . > >>> > >>> Please refer to > >>> E:\gsoc2012\roller\planet-business\target\surefire-reports for t > >>> he individual test results. > >>> at > >>> org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugi > >>> n.java:575) > >>> at > >>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default > >>> BuildPluginManager.java:101) > >>> at > >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor > >>> .java:209) > >>> ... 19 more > >>> [ERROR] > >>> [ERROR] Re-run Maven using the -X switch to enable full debug logging. > >>> [ERROR] > >>> [ERROR] For more information about the errors and possible solutions, > >>> please rea > >>> d the following articles: > >>> [ERROR] [Help 1] > >>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc > >>> eption > >>> [ERROR] > >>> [ERROR] After correcting the problems, you can resume the build with > the > >>> command > >>> > >>> [ERROR] mvn <goals> -rf :roller-planet-business > >>> > >>> > >>> Then, i tried "mvn -e clean install -Dmaven.test.skip=true" to skip > >>> unit tests, everything works well, and build successful. > >>> > >>> [INFO] > >>> > ------------------------------------------------------------------------ > >>> [INFO] Reactor Summary: > >>> [INFO] > >>> [INFO] Roller Project - Trunk ............................ SUCCESS > >>> [13.669s] > >>> [INFO] Roller Core - Trunk ............................... SUCCESS > >>> [1.249s] > >>> [INFO] Roller Test Utilities - Trunk ..................... SUCCESS > >>> [0.718s] > >>> [INFO] Roller Planet Business - Trunk .................... SUCCESS > >>> [3.443s] > >>> [INFO] Roller Weblogger Business Module - Trunk .......... SUCCESS > >>> [6:58.762s] > >>> [INFO] Roller Weblogger Web Module - Trunk ............... SUCCESS > >>> [14:44.489s] > >>> [INFO] Roller Weblogger Web Application - Trunk .......... SUCCESS > >>> [4:30.487s] > >>> [INFO] > >>> > ------------------------------------------------------------------------ > >>> [INFO] BUILD SUCCESS > >>> [INFO] > >>> > ------------------------------------------------------------------------ > >>> [INFO] Total time: 26:33.030s > >>> [INFO] Finished at: Tue Feb 07 11:21:12 CST 2012 > >>> [INFO] Final Memory: 14M/38M > >>> [INFO] > >>> > ------------------------------------------------------------------------ > >>> > >>> So, there may be something wrong with Roller's test cases. > >>> > >>> 2012/2/5 Dave <snoopdave@...>: > >>> > Current Roller trunk is build fine and passing 100% of unit tests (as > >>> you > >>> > can see here https://builds.apache.org/view/M-R/view/Roller/). If > you > >>> are > >>> > experiencing test failures there must be some problem with your Java, > >>> Maven > >>> > or Eclipse environment. > >>> > > >>> > - Dave > >>> > > >>> > > >>> > On Sun, Feb 5, 2012 at 10:34 AM, Greg Huber <gregh3269@...> > >>> wrote: > >>> > > >>> >> Hello, > >>> >> > >>> >> > >>> >> If you go to run as.. | run configurations | mavern builds > >>> >> > >>> >> locate your build launch and about half way down there are check > boxes. > >>> >> Check skip tests. Then use this launch to start the build. > >>> >> > >>> >> Last picture on > >>> >> > >>> >> > >>> > https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse > >>> >> . > >>> >> > >>> >> On 5 February 2012 15:26, Tiger Gui <tigergui1990@...> wrote: > >>> >> > >>> >> > Sorry, i am not very clear how to build it with the tests > skipped, i > >>> >> > use Eclipse run as -> maven install to build the trunk, how to > skip > >>> >> > the tests ? Thank you > >>> >> > > >>> >> > 2012/2/5 Greg Huber <gregh3269@...>: > >>> >> > > Hello, > >>> >> > > > >>> >> > > Try building it with the tests skipped. > >>> >> > > > >>> >> > > ..... > >>> >> > > > >>> >> > > [INFO] Reactor Summary: > >>> >> > > [INFO] > >>> >> > > [INFO] Roller Project - Trunk ............................ > SUCCESS > >>> >> > [1.046s] > >>> >> > > [INFO] Roller Core - Trunk ............................... > SUCCESS > >>> >> > [5.184s] > >>> >> > > [INFO] Roller Test Utilities - Trunk ..................... > SUCCESS > >>> >> > [2.174s] > >>> >> > > [INFO] Roller Planet Business - Trunk .................... > SUCCESS > >>> >> > [12.280s] > >>> >> > > [INFO] Roller Weblogger Business Module - Trunk .......... > SUCCESS > >>> >> > [19.094s] > >>> >> > > [INFO] Roller Weblogger Web Module - Trunk ............... > SUCCESS > >>> >> > [13.953s] > >>> >> > > [INFO] Roller Weblogger Web Application - Trunk .......... > SUCCESS > >>> >> > [10.283s] > >>> >> > > [INFO] > >>> >> > > > >>> >> > >>> > ------------------------------------------------------------------------ > >>> >> > > [INFO] BUILD SUCCESS > >>> >> > > [INFO] > >>> >> > > > >>> >> > >>> > ------------------------------------------------------------------------ > >>> >> > > [INFO] Total time: 1:05.176s > >>> >> > > [INFO] Finished at: Sun Feb 05 15:06:28 GMT 2012 > >>> >> > > [INFO] Final Memory: 23M/191M > >>> >> > > [INFO] > >>> >> > > > >>> >> > >>> > ------------------------------------------------------------------------ > >>> >> > > > >>> >> > > > >>> >> > > > >>> >> > > > >>> >> > > On 5 February 2012 13:18, Tiger Gui <tigergui1990@...> > >>> wrote: > >>> >> > > > >>> >> > >> Hi all, > >>> >> > >> > >>> >> > >> I want to install and build Roller trunk source code follow the > >>> guide > >>> >> > >> [1], but failed, error messages: > >>> >> > >> > >>> >> > >> [INFO] Roller Project - Trunk ............................ > SUCCESS > >>> >> > >> [14.322s] > >>> >> > >> [INFO] Roller Core - Trunk ............................... > SUCCESS > >>> >> > >> [2:37.355s] > >>> >> > >> [INFO] Roller Test Utilities - Trunk ..................... > SUCCESS > >>> >> > [2.168s] > >>> >> > >> [INFO] Roller Planet Business - Trunk .................... > SUCCESS > >>> >> > >> [3:07.350s] > >>> >> > >> [INFO] Roller Weblogger Business Module - Trunk .......... > SUCCESS > >>> >> > >> [8:14.548s] > >>> >> > >> [INFO] Roller Weblogger Web Module - Trunk ............... > FAILURE > >>> >> > [0.888s] > >>> >> > >> [INFO] Roller Weblogger Web Application - Trunk .......... > SKIPPED > >>> >> > >> [INFO] > >>> >> > >> > >>> >> > >>> > ------------------------------------------------------------------------ > >>> >> > >> [INFO] BUILD FAILURE > >>> >> > >> [INFO] > >>> >> > >> > >>> >> > >>> > ------------------------------------------------------------------------ > >>> >> > >> [INFO] Total time: 14:17.341s > >>> >> > >> > >>> >> > >> It seems that there is something wrong with > roller-weblogger-web > >>> and > >>> >> > >> roller-weblogger-webapp's classpath, in their Maven > dependencies, > >>> they > >>> >> > >> can not find tools.jar, shown in attach figure. I think there > may > >>> be > >>> >> > >> something wrong with Roller's maven configuration file and we > >>> should > >>> >> > >> fix it. But now, i do not know how to handle this situation, > and > >>> >> > >> please help. Thank you. > >>> >> > >> > >>> >> > >> [1] > >>> >> > >> > >>> >> > > >>> >> > >>> > https://cwiki.apache.org/confluence/display/ROLLER/Build+and+Run+Roller+5+in+Eclipse > >>> >> > >> > >>> >> > >> -- > >>> >> > >> Best Regards > >>> >> > >> ---------------------------------------------------- > >>> >> > >> Tiger Gui [tigergui1990@...] > >>> >> > >> > >>> >> > > >>> >> > > >>> >> > > >>> >> > -- > >>> >> > Best Regards > >>> >> > ---------------------------------------------------- > >>> >> > Tiger Gui [tigergui1990@...] > >>> >> > > >>> >> > >>> > > >>> > > >>> > > >>> > -- > >>> > Dave M. Johnson > >>> > Apache Roller PMC Chair > >>> > http://rollerweblogger.org/roller > >>> > >>> > >>> > >>> -- > >>> Best Regards > >>> ---------------------------------------------------- > >>> Tiger Gui [tigergui1990@...] > >>> > >> > >> > >> > >> -- > >> Shelan Perera > >> > >> Home: http://www.shelan.org > >> Blog : http://www.shelanlk.com > >> Twitter: shelan > >> skype :shelan.perera > >> gtalk :shelanrc > >> > >> I am the master of my fate: > >> I am the captain of my soul. > >> *invictus* > >> > >> > >> > >> > >> > >> > >> > >> > > > > > > -- > > Shelan Perera > > > > Home: http://www.shelan.org > > Blog : http://www.shelanlk.com > > Twitter: shelan > > skype :shelan.perera > > gtalk :shelanrc > > > > I am the master of my fate: > > I am the captain of my soul. > > *invictus* > > > > -- > Best Regards > ---------------------------------------------------- > Tiger Gui [tigergui1990@...] > |
| Free embeddable forum powered by Nabble | Forum Help |