Maven skip tests

1 view
Skip to first unread message

Naftoli Gugenheim

unread,
Aug 4, 2009, 4:57:20 PM8/4/09
to lif...@googlegroups.com
How do you tell maven to install even if tests fail?

Indrajit Raychaudhuri

unread,
Aug 4, 2009, 5:06:52 PM8/4/09
to lif...@googlegroups.com
Telling maven to never fail:
mvn -fn (NEVER fail the build, regardless of project result)

Telling maven to skip test: (quite different from never failing)
mvn -Dmaven.test.skip=true

/irc

Naftoli Gugenheim

unread,
Aug 4, 2009, 5:14:58 PM8/4/09
to lif...@googlegroups.com
Thanks. Not sure why only the latter did an install.

-------------------------------------

Mark McBride

unread,
Aug 4, 2009, 7:37:24 PM8/4/09
to lif...@googlegroups.com
My guess is that while -fn tells maven never to fail, it doesn't tell
it at what point in the lifecycle to finish. It's likely that the
test goal failed, maven stopped (before executing the install goal)
and reported a successful build. In the second case you're removing
the test goal from the maven lifecycle, so maven gets to the install
goal.
Reply all
Reply to author
Forward
0 new messages