roller-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tiger Gui <tigergui1...@gmail.com>
Subject Re: Install and build Roller trunk source code failed
Date Tue, 07 Feb 2012 09:57:29 GMT
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@gmail.com>:
> 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@gmail.com> 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@gmail.com> 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@gmail.com>:
>>> > 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@gmail.com>
>>> 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@gmail.com> 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@gmail.com>:
>>> >> > > 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@gmail.com>
>>> 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@gmail.com]
>>> >> > >>
>>> >> >
>>> >> >
>>> >> >
>>> >> > --
>>> >> > Best Regards
>>> >> > ----------------------------------------------------
>>> >> > Tiger Gui [tigergui1990@gmail.com]
>>> >> >
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Dave M. Johnson
>>> > Apache Roller PMC Chair
>>> > http://rollerweblogger.org/roller
>>>
>>>
>>>
>>> --
>>> Best Regards
>>> ----------------------------------------------------
>>> Tiger Gui [tigergui1990@gmail.com]
>>>
>>
>>
>>
>> --
>> 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@gmail.com]

Mime
View raw message