• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
may be running the goal with -X option could reveal the issue?
 
stefan bungert
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic