This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark ""maven site" fails on tests, while "maven test" runs without failures" Watch ""maven site" fails on tests, while "maven test" runs without failures" New topic
Author

"maven site" fails on tests, while "maven test" runs without failures

stefan bungert
Greenhorn

Joined: Oct 29, 2005
Posts: 5
Hi!
I have a problem here with this maven build. (Maven 1.02)
I have made a multiproject, where there is a test appliaction named bookstore. I have some classes in it and one test case testing one class and one method.

anyway, when running "maven test" it runs successfully through the test.
when I run maven site it says:

test:test:
[junit] Running com.acme.bookstore.test.TestBookstore
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,297 sec
[junit] [ERROR] TEST com.acme.bookstore.test.TestBookstore FAILED

BUILD FAILED
File...... C:\Documents and Settings\Administrator\.maven\cache\maven-test-plugin-1.6.2\plugin.jelly
Element... fail
Line...... 181
Column.... 54
There were test failures.

Any idea what that might be?

When I comment all lines in the test it also runs successfully, probably it cannot solve the import statements?

thanks in advance
Stefan
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
may be running the goal with -X option could reveal the issue?
stefan bungert
Greenhorn

Joined: Oct 29, 2005
Posts: 5
It works!

I dunno why it didn't test. I had some problmes with the junit report, when using jdk 1.5 sntax like List<Class> but now even that works
I also had problmes with mavenIDE in eclipse, it sometimes reset the configs in project.xml
I can't reconfigure the failure unfortunately

bye
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "maven site" fails on tests, while "maven test" runs without failures
 
Similar Threads
maven and Junit Tests
JUnit and AbstractTestCase Problem
IntelliJ 4.0, Ant and JUnit
Submission Jar: test case + Ant build script
Ant and JUnit (Build Failed)