You 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<[email protected]>:
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<[email protected]>  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<[email protected]>  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<[email protected]>:
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<[email protected]>  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 [[email protected]]



--
Best Regards
----------------------------------------------------
Tiger Gui [[email protected]]



--
Dave M. Johnson
Apache Roller PMC Chair
http://rollerweblogger.org/roller




Reply via email to